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

wrong shadow on message box buttons with WA_MacSmallSize

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.9.2
    • None
    • mac 10.13.1

      xcode 9.1

      Qt 5.9.2

    Description

      I have a dialog where I'm setting WA_MacSmallSize. If I open a message box, child of this dialog, the buttons there are small but the shadow is big.

       

      To repro (I've added the workaround to not set a parent for the message box)

      #include <QApplication>
      #include <QWidget>
      #include <QMessageBox>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          QWidget main;
          main.setAttribute(Qt::WA_MacSmallSize);
          
          main.show();
          
          QMessageBox::information( &main, QCoreApplication::applicationName(), "wrong");
          QMessageBox::information( nullptr, QCoreApplication::applicationName(), "right");
      
          return app.exec();
      }
      
      

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            thierryb Thierry Bastian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes