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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        1. Hover 5.10.0.png
          Hover 5.10.0.png
          5 kB
        2. Hover 5.10.1.png
          Hover 5.10.1.png
          5 kB
        3. main.qml
          3 kB
        4. main.qml
          3 kB
        5. Pane-Right.png
          Pane-Right.png
          0.2 kB
        6. Qt 5.10.0.png
          Qt 5.10.0.png
          4 kB
        7. Qt 5.10.1.png
          Qt 5.10.1.png
          4 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes