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.
当我展示我的窗户时,它们会偏离中心。我已经看到通过将窗口位置设置为相关屏幕坐标来解决此问题的示例。但是有没有办法通过 UI Designer 来做到这一点。
您可以通过使用来实现这一点
setWindowFlags(Qt::FramelessWindowHint); setWindowModality(Qt::ApplicationModal);
请参考这个例子:
http://doc.qt.io/qt-4.8/qt-widgets-windowflags-example.html