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

Active palette role doesnt work on OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 3.x
    • GUI: Look'n'Feel
    • None
    • macOS

    Description

      The example below displays a button which changes its color to red when the window is active.
      This works on X11/Linux.
      On Mac OS X the button is always red, regardless if the window is active or not.

      #include <QApplication>
      #include <QPushButton>

      int main(int argc, char **argv)
      {
      QApplication a(argc, argv);

      QPushButton *b=new QPushButton();
      b->setStyleSheet("QPushButton:active

      { background-color: red }

      ");
      b->setText("Test");
      b->show();
      a.exec();

      return 0;
      }

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            sabelka Rainer Sabelka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes