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

Details

    • Bug
    • Resolution: Unresolved
    • 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)

    Description

      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.

      Attachments

        1. qtbug30181.tar
          30 kB
        2. WinIdBug.zip
          9 kB
        3. WinIdBug2.zip
          9 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes