QGridelayout, align with missing column?

  • Hi,

    I want to create a really simple button UI, 2 on the top row and one on the bottom row. Is there anyway to use one widget to contain them all, and set a grid layout for that?
    current code -

    ctrlPanelLay.addWidget(_play, 0,0);
    ctrlPanelLay.addWidget(_stop, 0,1);
    ctrlPanelLay.addWidget(exitButton, 1,0);
    When using the grid layout, I get
    1_1556614308237_Screenshot from 2019-04-30 11-49-16.png
    But what I want is
    0_1556614308236_Screenshot from 2019-04-30 11-49-16_2.png

    Is this some alignment issue?

  • Qt Champions 2018

    There are no images so we can see your problem.
    Did you try to manage it in the qt designer?

Log in to reply

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