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

Qt Widget embedded inside Carbon application, Qt eats kHICommandQuit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 4.7.1
    • 4.5.2
    • Core: Event loop
    • None

    Description

      When embedding a qt widget inside a native carbon application, if the user want to quit they will call Ctrl + Q to exit the Host-Application ("Apple+q" or directly from the MenuBar).

      Qt receives the kHICommandQuit event, works with it and finally eats it. This causes a problem because the Host-Application never gets this event (because it was eaten) and so it can't finish its job.

      A possible workaround in the Qt-Source-Code is to the file "qapplication_mac.mm". Adding the line "CallNextEventHandler (caller, event);" at the end of area "if(cmd.commandID == kHICommandQuit)", line 2333. The Host-Application gets the event correctly.

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            dettman Dean Dettman (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