Results 1 to 4 of 4

Thread: QDockWidget inside QDockWidget

  1. #1
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default QDockWidget inside QDockWidget

    Is it possible to add QDockWidget inside QDockWidget?
    I want an array of widgets (not tabs...all visible) inside a dock widget which can be floated together as a single widget. Currently I am using QSplitterinside QDockWidget. I want to enhance it with the capability of floating individual widgets also. How to do this?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QDockWidget inside QDockWidget

    I think you can do that by having multiple dockwidgets at the same dock area.
    Dockwidgets can be tabbed and below/beside each other when docked into the same area.

    Check for example Qt Designer or Qt assistant.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QDockWidget inside QDockWidget

    I think the OP wants to be able to undock the entire content of a dock area (i.e. multiple stacked dock widgets) into a single floating super-dockwidget. The super-dockwidget should also allow undocking/docking of the dock widgets it contains. This is not possible out of the box. You might be a be to fake it with second top-level QMainWindow if it will allow dock widget docking (don't know, never tried).

  4. #4
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QDockWidget inside QDockWidget

    Need think over both suggestions. Let me see if First suggestion will serve the purpose.

Similar Threads

  1. Replies: 1
    Last Post: 7th December 2010, 22:46
  2. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 08:06
  3. QDockWidget and more
    By Carlsberg in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2009, 10:47
  4. QDockWidget
    By ToddAtWSU in forum Qt Programming
    Replies: 6
    Last Post: 29th November 2007, 14:37
  5. Default size of a QListWidget inside a QDockWidget
    By rakuco in forum Qt Programming
    Replies: 0
    Last Post: 25th July 2007, 09:01

Tags for this Thread

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.