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

QCommandLinkButton resets icon on StyleChange event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.8.2
    • None
    • Linux/X11

    Description

      With some recent patches (see https://codereview.qt-project.org/c/qt/qtbase/+/613758) the QCommandLinkButton will reset any explicitly set icon in a QCommandLinkButton once the widget is informed about a style change.

      This might be a reasonable idea if during the life time of a program the user changes the style and expects default command link buttons to hav e the correct icon, but if the icon is set explicitly Qt should never touch it. 

      If the user should never alter the icon of a QCommandLinkButton there should be no way to do so or at least have a note in the documentation of the QCommandLinkButton class.

      Attachments

        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
            mlangen Marc Langenbach
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes