How can QMainWindow fill device window whole
-
Bought a LCD module, below is the specification, it is plug into a imx6 controller
Display Area: 697.7 x 129.7
Resolution: 1366 x 254
Aspect Ratio: 16 x 3Qt Application runs ok on PC, but onboard it did not fill the device screen
In Qt Property, below is the settingsWindowModelity - WindowModal
geometry - 1366 x 254
Width: 1366
Height: 254 -
Hi,
You can try this QWindow::setMaximumSize(const QSize & size) and set the size or you can even try with window.setWindowState(Qt::WindowMaximized)
-
You can use setMaximumSize(width, height) or setMinimumSize(width, height)