济南建设信用网网站网络推广平台哪家公司最好
问题是,当我在 Qt 中打开一个新窗口时,它会自动窃取前一个应用程序的焦点。
有什么办法可以防止这种情况发生吗?
setAttribute(Qt::WA_ShowWithoutActivating);
 
这会强制窗口不激活。即使有Qt::WindowStaysOnTopHint flag
出处:
 Show window in Qt without stealing focus : https://stackoverflow.com/questions/966688/show-window-in-qt-without-stealing-focus
