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

REG: ToolButton.contentItem for anchors and source for ColorOverlay no longer works

XMLWordPrintable

      Using the contentItem of a ToolButton as the reference geometry and source for a ColorOverlay no longer works in 5.10.1 (this is a regression from 5.10.0).

      Running the attached QML works as expected in 5.10.0 but not in 5.10.1 (see attached screen shots for both runs. Both images should have a gray overlay).

      Assigning an id to the contentItem and using that as a reference for the ColorOverlay works in both versions so it is a (partial) workaround.

      However, since the geometry of the contentItem doesn't seem to get calculated properly, the ToolButton highlight has the wrong geometry in 5.10.1.

        1. Qt 5.10.0.png
          Qt 5.10.0.png
          4 kB
        2. Qt 5.10.1.png
          Qt 5.10.1.png
          4 kB
        3. main.qml
          3 kB
        4. Hover 5.10.0.png
          Hover 5.10.0.png
          5 kB
        5. Hover 5.10.1.png
          Hover 5.10.1.png
          5 kB
        6. Pane-Right.png
          Pane-Right.png
          0.2 kB
        7. main.qml
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            aamann aamann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes