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

QToolButton weird behavior when setStyleSheet.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.3, 6.3.0
    • None

    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

        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: