[Qt-interest] Getting a Dockwidget to fill all available space in a Main Window

Jens linucks42 at gmail.com
Sun Jan 18 15:16:24 CET 2009


Hello,

I've just started playing around with Qt (I'm working in Python, so
I'm actually using PyQt) and am extremely impressed with it. However,
I've hit a problem that I think should be very simple to solve, but
has me stuck.

I'm implementing a text editor as a Dockwidget, so that I can have a
number of different editors open at the same time in the same main
window.

When the app is first started with a single text editor in the main
wiindow, I'd like the editor widget to expand to fill all the
available space in the main window, regardless of the size that the
main window is.

Is there a simple way to do this?

Thanks,

Jens



More information about the Qt-interest-old mailing list