Qt and layout problems
-
wrote on 28 Dec 2011, 14:32 last edited by
I can't layout items in layout.
"LINK (screenshot)":http://xmages.net/i/3283070I want my tablewidget fit when window size is changing, so I created layout. When I am changing window size, my layout not changing size.
Maybe I am not using it correctly.
-
wrote on 28 Dec 2011, 14:47 last edited by
You have to make sure that:
Every layout has been set on a QWidget (using QWidget::setLayout) or another layout
Every widget is in a layout
That needs to be true all the way up to the top level widget.
-
wrote on 28 Dec 2011, 14:52 last edited by
In particular, make sure you have set the central widget of your main window (if you are using a QMainWindow) or set the layout for your dialog, if using QDialog. Are you using Designer to lay out the widgets, or doing it by hand?
-
wrote on 28 Dec 2011, 14:53 last edited by
Yes, I've done all that. Layout have to fit sizes of all widgets in him when window size is changing. But in my case, it doesn't working.
-
wrote on 28 Dec 2011, 14:54 last edited by
"LINK (screenshot)":http://xmages.net/i/3283070
There is screenshot of my Designer.
-
wrote on 28 Dec 2011, 14:55 last edited by
"It doesn't work" is not enough to diagnose your problem. However, not that many, many people are using Qt's layouts with great success. So, it is more likely that you are missing a step, than that Qt doesn't work correctly.
-
wrote on 28 Dec 2011, 14:57 last edited by
There is no layout for the top level dialog, I think.
-
wrote on 28 Dec 2011, 15:49 last edited by
[quote author="Andre" date="1325084252"]There is no layout for the top level dialog, I think. [/quote]
I see the same!
1/8