Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PyQt] Help on resizing a custom widget

4 views
Skip to first unread message

ska...@gmail.com

unread,
Aug 27, 2007, 2:54:30 PM8/27/07
to
Ok, here's what's going on. I've just created a custom widget. it
works great. I'm having some trouble, however, figuring out how to
allow the said widget to resize. For example, when I throw the widget
into a new dialog (using Qt Designer), I want to be able to drag it
larger/smaller and have widget expand/shrink to that size. Right now,
I can drag the widget bigger/smaller all I want, but it doesn't
actually change size.

I'm pretty new to PyQt (and therefore, Qt), so I'm pretty sure that
the answer is a property that needs to be set somewhere. I'm just not
sure which one. So you know, I'm using Python 2.4.3 and PyQt 3.1.6.

Any help and suggestions would be appreciated. Thanks.

Phil Thompson

unread,
Aug 27, 2007, 4:40:28 PM8/27/07
to pytho...@python.org

Probably best to start with the following...

http://doc.trolltech.com/4.3.0/layout.html#custom-widgets-in-layouts

Phil

ska...@gmail.com

unread,
Aug 27, 2007, 5:02:25 PM8/27/07
to
On Aug 27, 4:40 pm, Phil Thompson <p...@riverbankcomputing.co.uk>
wrote:

Thanks for pointing me in the right direction. I'll take a look at it.

0 new messages