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

QMessageBox button can't pressed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0
    • Widgets: Style Sheets
    • None
    • 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
    • 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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            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