problem with layout
-
wrote on 19 Sept 2019, 13:12 last edited by
-
Hi,
Did you put all these items in layouts ?
Either a QGridLayout or a combo of QHBoxLayout and QVBoxLayout ? -
Hi,
Did you put all these items in layouts ?
Either a QGridLayout or a combo of QHBoxLayout and QVBoxLayout ? -
@zunneh
did you set the spacing to 0?
https://doc.qt.io/qt-5/qlayout.html#spacing-prop -
@zunneh
did you set the spacing to 0?
https://doc.qt.io/qt-5/qlayout.html#spacing-propwrote on 20 Sept 2019, 08:53 last edited by Zunneh -
@j-hilk i tried it but it's not the result i want, what i want is when i resize my app manually, this block does not create spacer
@zunneh ah sorry, now I understand your issue :)
for such cases Qt has Spacers
https://doc.qt.io/qt-5/qspaceritem.htmlthat you can place inside layouts. those than will fill up all available space and therefore groups other objects together(geometry speaking), when your widget is being resized
-
@zunneh ah sorry, now I understand your issue :)
for such cases Qt has Spacers
https://doc.qt.io/qt-5/qspaceritem.htmlthat you can place inside layouts. those than will fill up all available space and therefore groups other objects together(geometry speaking), when your widget is being resized
wrote on 20 Sept 2019, 10:06 last edited by Zunneh@j-hilk it work, my grid layout is now fixed to the top of my widget,
now, I do not want any space below the widget, how can i do it ? thanks
2/7