Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6089

"Quit app" doesn't quit applications with Cocoa

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • 4.6.1
    • 4.6.0
    • None
    • 4ea54f03174778a4efdcb802f9179b6e1d17fd88

    Description

      On Mac/Cocoa selecting a Quit from the application menu doesn't quit the app if the event loop was not started from the QApplication i.e. consider the following example:

      #include <QtGui>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          QDialog d;
          //d.show();
          //return app.exec();
          return d.exec();
      }
      

      However using app.exec() makes the application quit just fine.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            dzyubenk Denis Dzyubenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes