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

[REG 5.3.2->5.4] XCB: QDockWidget invisible after setFloating(true and changing title bar widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.1
    • 5.4.0 Beta
    • QPA: X11/XCB
    • None
    • 8860522d7e8d76c6b59a593a329a6bfa754cb432 (qtbase/5.4, 5.12.2014. 5.4.1)

    Description

      I was testing the latest Qt 5.4 RC snapshot on Linux and experienced a strange bug with my dockable widgets.

      The main application consists of several dock widgets. As soon as I'm trying to float one of the widgets, they are undocked from the main widget and are invisible. If I dock them back, everything is fine.

      See attached screenshots from GammaRay, while trying to find out what happened.

      The screenshot below shows the default window after the application had started. The widget with the red border is a QDockWidget and will be floated in the next screenshot.

      Below you can see what happens when the QDockWidget was floated. The position was moved out of the screen completly. I was able to move it back with Gammaray and saw the position with the red border. But its not rendered. Any attempt to change position, size or visibility in code failed as well.

      The last screenshot is what I get when using Qt 5.3.2. The undocked widget is rendered properly.

      Was there any change in 5.4 which might explain this? Unfortunately I could not yet produce a minimal example. All QDockWidget examples from the repository seem to work fine.

      I don't yet if this works on other platforms but will test it.

      Attachments

        1. gammaray1.png
          gammaray1.png
          279 kB
        2. gammaray2.png
          gammaray2.png
          275 kB
        3. gammaray3.png
          gammaray3.png
          285 kB
        4. qtbug42818_diag.diff
          2 kB
        5. QTBUG-42818.tar.gz
          3 kB
        6. qtbug42818.zip
          5 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              rolandwinklmeier Roland Winklmeier
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes