我有一个带有 2 个监视器输出 (1920x1080) 的 linux 系统。我安排它们的桌面尺寸为 1920x2160。现在我想运行一个 Qt 应用程序,它以覆盖 1920x2160 桌面的全屏模式启动。我试过了:
QWidget::setFullScreen() -> The QWidget is maximized across 1 monitor
QWidget::setGeometry(0,0,1920,2160) -> The QWidget is also maximized across 1 monitor
即使我这样做:
QWidget::move(0,0) & QWidget::resize(1920,2160) -> The QWidget does not exceed the size of the 1 monitor.
但是如果我用鼠标手动移动和调整 QWidget 的大小,我可以将其调整为 1920x2160。我无法以编程方式做到这一点。
也许有人对我做错了什么有暗示。
提前致谢。