Qt and layout problems
I can't layout items in layout.
I 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.
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.
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?
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.
There is screenshot of my Designer.
"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.
There is no layout for the top level dialog, I think.
[quote author="Andre" date="1325084252"]There is no layout for the top level dialog, I think. [/quote]
I see the same!