Qt-interest Archive, August 2006
Resizabel Widgets with QT3.x
Message 1 in thread
Hello.
I'm trying to create some custom widgets for my application but I have
problems with resizing them.
For example I've implemented a button row like this
+---------------------------------------------------------------------------+
| +---------+ +----------+ +----------+ +----------+ +----------+ |
| | | | | | | |
| | | |
| +---------+ +----------+ +-----------+ +----------+ +-----------+ |
+---------------------------------------------------------------------------+
This button row will be embeded in various dialog widgets.
If I resize the widgets, the size of the button row remains the same although
I have set the parameter resizeMode() to AUTO.
I have used the QGrid Layout and the button row is derived from the
QWidget class.
Thanks in advance
Wolfgang
--
[ signature omitted ]
Message 2 in thread
*This message was transferred with a trial version of CommuniGate(r) Pro*
Hello Wolfgang,
Tuesday, August 1, 2006, 10:53:21 AM, you wrote:
WL> Hello.
WL> I'm trying to create some custom widgets for my application but I have
WL> problems with resizing them.
WL> For example I've implemented a button row like this
WL> +---------------------------------------------------------------------------+
WL> | +---------+ +----------+ +----------+ +----------+ +----------+ |
WL> | | | | | | | |
WL> | | | |
WL> | +---------+ +----------+ +-----------+ +----------+ +-----------+ |
WL> +---------------------------------------------------------------------------+
WL> This button row will be embeded in various dialog widgets.
WL> If I resize the widgets, the size of the button row remains the same although
WL> I have set the parameter resizeMode() to AUTO.
WL> I have used the QGrid Layout and the button row is derived from the
WL> QWidget class.
WL> Thanks in advance
WL> Wolfgang
Try to set QSizePolicy::Expanding for each button
--
[ signature omitted ]