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

QToolButton weird behavior when setStyleSheet.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 6.3
    • 6.2.3, 6.3.0
    • None
    • 1c338e6d07 (qt/qtbase/dev) 9d41bd4312 (qt/qtbase/dev)

    Description

      QToolButton's style will go  out of control ,if invoke method setStyleSheet, even if the stylesheet has nothing to do with the QToolButton.

       

       

      expected looks

       

       setStyleSheet with any non empty string will trigger this weird behavior.

        setStyleSheet(QString("\r\n\r\n"));
      

      btw, run with Qt5.15.2 is ok.

      Attachments

        Issue Links

          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
              xiaoyifang yifang xiao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes