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

QPushButton with stylesheet cannot be pushed when it is clicked on macOS & Qt 5.15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.15.0
    • Widgets: Style Sheets
    • None
    • macOS & Qt 5.15
    • macOS
    • f9940b15f7f0fde731431626172939b9821fd660 (qt/qtbase/dev) a9f82b8b2c19ecc5bf5ab0d376780c34e8435202 (qt/qtbase/5.15)

    Description

      QPushButton with stylesheet neither can be pushed nor its clicked event is fired when it is clicked on macOS & Qt 5.15. This bug doesn't appear on Windows and Linux versions of Qt 5.15. Previous than 5.15 versions of Qt also don't have this bug.

      To reproduce this bug:

      • Create a new Qt Widgets Application Project on macOS version of Qt 5.15
      • Add a push button to the main window
      • Add qDebug()<<"pushed"; statement to its clicked() slot
      • Add any stylesheet for QPushButton like below:
        QPushButton { background-color: yellow }
        or
        QPushButton {border: 2px solid}
      • Run the application.

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              volkanorhan Volkan Orhan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes