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

QMessageBox button can't pressed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      Qt Creator 4.12.3
      Based on Qt 5.14.2 (Clang 10.0 (Apple), 64 bit)

      Built on Jun 16 2020 01:15:39

      From revision 48e46132e3


      macOS Catalina 10.15.5
    • Platform/s:
      macOS

      Description

      You can create a new project, and run the following two lines of code.

      //just 2 lines code
      qApp->setStyleSheet("QPushButton{background-color:gray}");    
      
      QMessageBox::information(this, "info", QString("text"));
      
      

      'OK' button can't pressed !

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            learnforlife wang xa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes