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

Focus rectangle incorrect when setting style sheets to QPushButton

    XMLWordPrintable

Details

    • a3b84f683e0baae34dc37c85a40dcae3e5306419

    Description

      Create an application that displays a QPushButton, and make sure that you set a custom stylesheet, for example the stylesheet as used in the attachment:

      QPushButton *pushButton = new QPushButton(this);
      pushButton->setStyleSheet("color: red;");

      Furthermore, make sure that QGtkStyle is used as the application's default style. Then run the application and give the push button input focus, and you'll see that the input focus rectangle is drawn in a non-default way.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes