Results 1 to 2 of 2

Thread: QMdiSubWindow not delet when click the X button.

  1. #1
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    1

    Default QMdiSubWindow not delet when click the X button.

    Hi trolls,
    I use QMdiArea in my application, I want the subwindow does not closed or deleted when I click the X button , Maybe just hidden, what should i do . Thanks .

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QMdiSubWindow not delet when click the X button.

    Don't set the WA_DeleteOnClose attribute on the subwindow. Just make sure you keep the pointer to the subwindow somewhere so that you can access it later. You can also minimize the subwindow instead of closing/hiding it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 2nd April 2008, 17:28
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. QPaintEvent on button click?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2007, 08:44
  4. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16:40

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.