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

Tk window partially constructed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.5
    • QPA
    • None
    • macOS

    Description

      QTBUG-15197 (Andy Shaw comment - 08 Oct '15) describes an issue we are having getting a Tk window displayed within our application on Mac. The hack to address this from 5.9.5 (and 5.5.0) is not working for us (or is not being applied in the correct place). This hack was as follows in qtbase/src/plugins/platforms/cocoa/qcocoamenu.mm (5.9.5):

       

      (void) itemFired:(NSMenuItem*) item 
      { 
      #ifdef PRE_PWISE // original 
          QCocoaMenuItem *cocoaItem = reinterpret_cast<QCocoaMenuItem *>([item tag]); 
          QScopedLoopLevelCounter loopLevelCounter(QGuiApplicationPrivate::instance()->threadData);
          QGuiApplicationPrivate::modifier_buttons = [QNSView convertKeyModifiers:[NSEvent modifierFlags]]; 
          static QMetaMethod activatedSignal = QMetaMethod::fromSignal(&QCocoaMenuItem::activated); 
          activatedSignal.invoke(cocoaItem, Qt::QueuedConnection); 
      #else // Tk window hack 
          QCocoaMenuItem *cocoaItem = reinterpret_cast<QCocoaMenuItem *>([item tag]); 
          QScopedLoopLevelCounter loopLevelCounter(QGuiApplicationPrivate::instance()->threadData); 
          QGuiApplicationPrivate::modifier_buttons = [QNSView convertKeyModifiers:[NSEvent modifierFlags]]; 
          cocoaItem->activated(); 
      #endif /* PRE_PWISE */ 
      }
      
      
      

      Can you provide some guidance on how we can address this?

      Attachments

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

        Activity

          People

            nagrohn Nahomi Gröhn (Inactive)
            jimc James Colby
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes