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

Calling winId() into my promoted QWidget's constructor (and not just in there), causes a lot weird problems in a QMainWindow.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.0.1
    • GUI: Window management
    • None
    • Qt 5.0.1 MSVC under Windows 7 x86
    • a87e8f7a1070b357185dbbe69bf0b98a8da247b8 (fix warning/Qt 5.1)

      Calling winId() on my promoted widget to get the native window handle causes serious weird problems with DockWidgets and, in my real application, it even bugs the order of Show/Hide events. The problem is not just with the Qt::Tool style not being applied.

      Also, we've a flood with these:
      QBackingStore::flush() called with non-exposed window, behavior is undefined

      I really need the handle, to integrate Ogre in there.

      I've attached a Qt project that shows the issue.

        1. WinIdBug.zip
          9 kB
          Peter Petrov
        2. WinIdBug2.zip
          9 kB
          Peter Petrov
        3. qtbug30181.tar
          30 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            rodal Samuel Rødal
            petersvp Peter Petrov
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes