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

QToolButton not using programmatically set QIcon variations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.13.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      mac or windows
    • Platform/s:
      macOS, Windows

      Description

      if you create a QIcon programmatically, and add QImages to it for all the states, then programmatically set it into a QToolButton, then, when the user clicks the button, the button does not show the "pressed" variant, or when the window is disabled, the button does not show the "disabled" variant

      on Windows, the button "depresses" down and to the right, instead of drawing the "pressed" variant. ??

      see minimal project, attached

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes