Results 1 to 6 of 6

Thread: Designer: QDockWidget not selectable after closing and re-opening form

  1. #1
    Join Date
    May 2006
    Location
    Boise, ID, USA
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question Designer: QDockWidget not selectable after closing and re-opening form

    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.

    I am doing this work in Windows XP Professional.

    Any assistance with this would be much appreciated!

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer: QDockWidget not selectable after closing and re-opening form

    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.

  3. #3
    Join Date
    May 2006
    Location
    Boise, ID, USA
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Designer: QDockWidget not selectable after closing and re-opening form

    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.

  4. #4
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer: QDockWidget not selectable after closing and re-opening form

    Hi,

    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.

    Thanks.

  5. #5
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designer: QDockWidget not selectable after closing and re-opening form

    Can someone please confirm this?

    Thanks.

  6. #6
    Join Date
    May 2006
    Location
    Boise, ID, USA
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Designer: QDockWidget not selectable after closing and re-opening form

    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:

    http://www.trolltech.com/developer/task-tracker
    http://www.trolltech.com/trolltech/c.../task-tracker/

    Thanks for your help munna.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.