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

[qmacnativewidget] macnativewidget not draw when events processed before being added to window

    XMLWordPrintable

Details

    Description

      1) a qmacnativewidget is created
      2) the qapplication processes its events
      3) the qmacnativewidget is added to a view

      in this case, the widget is not drawn. in my experiments i found a way to use a proxy-class, which implements NSView::viewDidMoveToWindow to hide() and show() the content, but that is not a general solution for us.

      note, this issue will only happen if qApp->processEvents() is called before [view addSubview: nativeWidget->nativeView()];

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-41010
          # Subject Branch Project Status CR V

          Activity

            People

              smd Jan Arve
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes