Results 1 to 2 of 2

Thread: how to tabify a qdockwidget to another floating qdockwidget

  1. #1
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default how to tabify a qdockwidget to another floating qdockwidget

    Hello,

    i can create a tab of a qdockwidget to a second one, when the second is docked. But i would like to tabify my first qdockwiget when the second is floating, is it possible? i went through the documentation i do not see how.

    Thanks for all your help

  2. #2
    Join Date
    Feb 2010
    Location
    Sydney, Australia
    Posts
    111
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to tabify a qdockwidget to another floating qdockwidget

    As far as I know this is not possible with the existing QDockWidget functionality. I think you'd explicitly need to detect when one floating QDockWidget is being dragged onto another QDockWidget and then you'd need to add both of contained widgets into a QTabWidget which you could then place into another floating QDockWidget.

    You'd then need a way to split them back out into their own separate QDockWidgets again.

    You'd need to think about the case where the QDockWidget containing a QTabWidget is docked with the QMainWindow again. If you have the functionality to split the tabs into separate QDockWidgets (as above) then you could do this and then dock the resulting QDockWidgets on on top of the other.

    Visual Studio 2008 has similar functionality and I've been keen on implementing something like that myself. Post back if you come up with another solution or manage to implement this.

Similar Threads

  1. Floating QDockWidget not re-docked by QMainWindow::restoreState
    By stefanadelbert in forum Qt Programming
    Replies: 14
    Last Post: 20th October 2016, 21:16
  2. Help with QDockWidget
    By mindbender in forum Qt Programming
    Replies: 6
    Last Post: 10th March 2010, 16:13
  3. QMainWindow ignores dynamically created, floating QDockWidget
    By stefanadelbert in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2010, 01:06
  4. QDockWidget : No floating
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2009, 18:42
  5. QDockWidget
    By ToddAtWSU in forum Qt Programming
    Replies: 6
    Last Post: 29th November 2007, 13:37

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.