qt-interest@trolltech.com
[Top] [All Lists]

RE: Dynamic sizing of objects on a QMainWindow

Subject: RE: Dynamic sizing of objects on a QMainWindow
From: Hadas Sandor
Date: Fri, 28 Jul 2006 12:26:47 +0200
Hi Again,
 
Thanks for the hints. I put all items on a grid layout, set sizing policy to expanding of the central widget, the layout, the widgets but it still did not help... What else should I look for?
 
Thanks,
Sandor
 
-----Original Message-----
From: veronique.lefrere@xxxxxx [mailto:veronique.lefrere@xxxxxx]
Sent: 27. heinäkuuta 2006 15:34
To: Hadas Sandor
Subject: Re: Dynamic sizing of objects on a QMainWindow

try again using qtdesigner.
put all widgets in a grid layout or separate left area from right area with a splitter.
this depend of design you want to offer to user...
but, the more important, open the sizepolicy property of left part qtablewidget and modify the horizontal strecth of left side qtablewidget.
play with the preview, reisze the mainwindow and tell me if there is something that could be what you want to do?...


Hadas Sandor a écrit :

Hi There,

It might be obvius just I cannot get around with it.

There is a QMainWindow which serves as the main application window. There are some elements on it, two QTableWidgets on the left hand side, one QTableWidget, some QLineEdits, QComboBoxes, QLabels on the right hand side. I would like to get the two QTableWidgets on the left hand side resized when the QMainWindow is resized. I tried with the documentation and with the tutorial and cannot figure out what I am doing wrong. I use Qt Designer where I tried to put the QTableWidgets into a vertical and a grid layout (dropping there), setting size policies, size increments, base sizes without any luck.

Can someone please tell me what I should be doing? Also, it would be good to know which signal is emitted when the QMainWindow is resized...

Thanks,
Sandor


<Prev in Thread] Current Thread [Next in Thread>