You are not logged in.

Dear visitor, welcome to If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Saturday, December 16th 2006, 10:03am

Qt4: Size of QDockWidget

I am working with a QMainWindow and add there some QDockWidget. So far it works great, but i would like to set the initial width of the QDockWidget without deactivating the resize possibility for the user.

As example i would like to add my QDockWidget to the QMainWindow and set the initial width of the QDockWidget to 100pixel. But i dont want to use a fixed width because the user should be able to resize afterwards.

i am using Qt4

I would be happy if someone can help me!