[Qt-interest] Resize QGridLayout
Rannou, Nicolas
Nicolas_Rannou at hms.harvard.edu
Mon Nov 16 20:56:12 CET 2009
Hi all,
I'm currently experimenting troubles while I'm trying to reajust automatically the size of my qt widget.
I'm working with vtk too.
I created a widget:
QWidget
+QGridLayout1
-QGridLayout2
.QFrame
...
.QSpinBox
...
-QLabel
+QVTKWidget
When the size of QWidget I call the function:
resizeEvent(QResizeEvent * event)
There I want to resize the content of my widget:
I can resize the QVTKWidget properly using setGeometry
But I can't resize the content of QGridLayout1
I call QGridLayout1->setGeometry( const QRect & )
QGridLayout1->Update()
but nothing happens, the content of the layout is not resized.
I also tried to resize only QFrame with setFrameRect( const QRect & )
I could not get it working.
What is the good way to resize automatically a such widget?
Thanks
Nicolas
More information about the Qt-interest-old
mailing list