Results 1 to 1 of 1

Thread: QWidget forced the application closed

  1. #1
    Join Date
    Nov 2011
    Location
    Karlsruhe, Germany
    Posts
    57
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QWidget forced the application closed

    I have an application which not implimented with QT.
    But I only want a small part which uses the Qwidget to make some GUIs.

    I find when I created the first QWidget and closed it, the whole application exits.
    It is possible that Qt treats the first QWidget as a mainwindow for the application. After closing the main window, the application should be also closed.
    Is there any idea to prevent this issue?


    __________________

    been solved

    QWidget::setAttribute(Qt::WA_QuitOnClose, false)
    Last edited by cic; 27th June 2013 at 17:48.

Similar Threads

  1. Replies: 13
    Last Post: 15th May 2013, 03:33
  2. How to check if a qwidget is closed ?
    By nackasha in forum Newbie
    Replies: 1
    Last Post: 31st October 2011, 05:46
  3. Replies: 6
    Last Post: 24th April 2011, 09:56
  4. QWidget-derived Application Plugins
    By SnarlCat in forum Qt Programming
    Replies: 2
    Last Post: 25th March 2008, 18:25
  5. Qt 4.2.2 static - *CLOSED*
    By maxpower in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 08:08

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.