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 3

    Qt Application runs ok on PC, but onboard it did not fill the device screen
    In Qt Property, below is the settings

    WindowModelity - 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)



  • I need to set the size of the QWidget to fit the device screen which is Resolution: 1366 x 254, not full screen.

    what is the qt command i should use



  • You can use setMaximumSize(width, height) or setMinimumSize(width, height)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.