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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes