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: Unresolved
    • P3: Somewhat important
    • None
    • 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

        Activity

          People

            tpochep Timur Pocheptsov
            equeim Alexey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: