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

QPushButton with Qt::WA_MacSmallSize has incorrect focus frame

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.1
    • None
    • macOS 10.11.6 El Capitan
    • macOS

    Description

      QPushButton with Qt::WA_MacSmallSize attribute set has an incorrect focus frame

      (WA_MacNormalSize and WA_MacMiniSize seem to work correctly)

      Example application:

      #include <QWidget>
      #include <QPushButton>
      #include <QVBoxLayout>
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QWidget w;
          w.setLayout(new QVBoxLayout);
      
          QPushButton *b = new QPushButton("Normal");
          w.layout()->addWidget(b);
      
          b = new QPushButton("Small");
          b->setAttribute(Qt::WA_MacSmallSize);
          w.layout()->addWidget(b);
      
          b = new QPushButton("Mini");
          b->setAttribute(Qt::WA_MacMiniSize);
          w.layout()->addWidget(b);
      
          w.show();
          return a.exec();
      }
      

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            aleserjavec Ales Erjavec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes