Results 1 to 4 of 4

Thread: Dragging QDockWidgets between QMainWindows

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18
    Thanked 68 Times in 66 Posts

    Default Re: Dragging QDockWidgets between QMainWindows

    Hi,

    you set the central widget explicitly to NULL. Then you enable DockNesting and that should be all for your requirements...

    just put these lines in your mainwindow constructor:
    Qt Code:
    1. setDockNestingEnabled(true);
    2. setCentralWidget(0);
    To copy to clipboard, switch view to plain text mode 

    hope that helps...
    Felix

  2. The following user says thank you to FelixB for this useful post:

    ArkKup (21st June 2012)

Similar Threads

  1. How to order of QDockWidgets in a DockWidgetArea?
    By Boron in forum Qt Programming
    Replies: 2
    Last Post: 21st April 2011, 11:41
  2. How to use QDockWidgets inside a QWidget ?
    By Comer352l in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2011, 13:39
  3. shared QUnstackStack among several QMainWindows ?
    By umanga in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2010, 07:58
  4. Replies: 0
    Last Post: 5th October 2010, 10:20
  5. How to change between QMainWindows???
    By webquinty in forum Newbie
    Replies: 3
    Last Post: 16th October 2009, 11:46

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
  •  
Qt is a trademark of The Qt Company.