Qtabelwidget in a qvboxlayout
-
Hi, i am doing a project to show chart.
I have a qvboxlayout with a table that is a my class sublassing from qtablewidget and a canvas for draw chart.
But in my layout the table expand in all the layout and i can't see the other widget.
How can i do for see all the widget in my layout?? -
Did you set the "minimumSize":http://qt-project.org/doc/qt-4.8/qwidget.html#minimumSize-prop for your widget/canvas ? Also check for "sizePolicy()":http://qt-project.org/doc/qt-4.8/qwidget.html#sizePolicy-prop
-
no, but the problem is the table because if i take in the layout only the canvas i see that, the table take all the space in my centralwidget of my mainwindow..
-
-
I tested your code with a test class, and it works as required. For your implementation try to set the "minimumHeight":http://qt-project.org/doc/qt-4.8/qwidget.html#minimumHeight-prop for both your widgets i.e Table and Canvas.