Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用QWidget::activatedWindows(),但它没有工作!那么我怎样才能把QWidget其他窗口带到顶层呢?
QWidget::activatedWindows()
QWidget
这可能会起作用:
window->setWindowFlags(Qt::WindowStaysOnTopHint);
但QWidget::raise()会工作。
QWidget::raise()