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

SP_DialogCloseButton maps to different icons when using standardIcon() or standardPixmap()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.7
    • 5.15.12, 6.4.0
    • Widgets: Styles
    • None

    Description

      When Qt uses Freedesktop icon theme, SP_DialogCloseButton maps to different icons depending on what method is called.

      When standardIcon() is called, "window-close" icon is used: https://github.com/qt/qtbase/blob/394b4c9e4994a9bdde89bd09eb0f663da44e0048/src/widgets/styles/qcommonstyle.cpp#L5979

      When standardPixmap() is called, "dialog-close" icon is used: https://github.com/qt/qtbase/blob/394b4c9e4994a9bdde89bd09eb0f663da44e0048/src/widgets/styles/qcommonstyle.cpp#L5493

      BTW it looks like standardPixmap() is correct here.

      Attachments

        Issue Links

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

          Activity

            People

              chehrlic Christian Ehrlicher
              equeim Alexey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes