View Full Version : Designer: QDockWidget not selectable after closing and re-opening form

6th May 2006, 06:01
I am trying to use Designer to modify a previously created QMainWindow that contains a QDockWidget. I have discovered that once I close a .ui file I can no longer select QDockWidgets by clicking on them with the mouse. I have tried several times using Qt 4.1.1 and 4.1.2. Every experiment I perform has had the same results. The experiments go like this:
- Create a MainWindow in Designer
- Add a Dock Widget
- Place a Text Edit object in the Dock Widget
- Set the layout for the Dock Widget to be grid layout
- Place a Text Edit object in the MainWindow
- Set the MainWindow layout to be the grid layout

At this point I can select, change properties, and de-select the Dock Widget all day long. Then I save and close the .ui file. When I re-open the form, I can no longer select the Dock Widget to change its properties or even to delete it. :confused:

I am doing this work in Windows XP Professional.

Any assistance with this would be much appreciated!

6th May 2006, 06:47
I tried the above steps on Xp Prfessional and it works perfectly for me.
I am able to edit the properties of dock widget after opening it again.

7th May 2006, 04:01
Thanks for looking at this munna.

I discovered a step that I forgot to mention earlier. The crucial step is to change the "docked" property of the QDockWidget to be "true" before saving the form. Doing that is the way I know of to actually make the QDockWidget act like a dockable widget.

7th May 2006, 17:52

Yes you are correct after I dock, save, close and open I am not able to select the dockwidget. I tried to select it using the Object Inspector but invain.

Experts, any idea on this.


9th May 2006, 16:51
Can someone please confirm this?


10th May 2006, 00:20
I posted an email to qt-bugs@trolltech.com and today I got the following reply:

This does look like a bug, and I've reported it to our development team
via task 114380. If/when that task is made public, you will be able to
track it through the following links:


Thanks for your help munna.