Results 1 to 2 of 2

Thread: QDockWidget is not getting closed if it is floating

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

    Default QDockWidget is not getting closed if it is floating

    I have a QMainWindow and added QDockWidget to it. Even after closing the main window, the dock widgets which are floating is not no getting closed. I was assuming all children will be automatically closed. Does the parent of QDockWidget changes when is floating? Any way to make it close even if it is floating. Thanks in advance

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QDockWidget is not getting closed if it is floating

    You probably have a bug in your code. I have an app with a dock widget in a main window. If I float the dock widget, it doesn't matter how I close the main window (eg. from an Exit menu item that calls close() or a click on the "X" on the title bar), both windows close and the app exit.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Events of floating QDockWidget
    By harregui in forum Qt Programming
    Replies: 8
    Last Post: 20th January 2017, 17:21
  2. Maximizing a floating QDockWidget?
    By blackmarlin in forum Qt Programming
    Replies: 1
    Last Post: 22nd December 2012, 11:25
  3. QDockWidget floating at the beginning
    By Caius Aérobus in forum Qt Programming
    Replies: 0
    Last Post: 2nd March 2011, 14:15
  4. Replies: 1
    Last Post: 7th December 2010, 22:46
  5. QDockWidget : No floating
    By prashant in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2009, 19:42

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.