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

Windows: Flickering of QLineEdit when using setStyleSheet with background-color (Vista style)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.x, 5.3.0
    • None
    • Windows 8.1

    Description

      When setting the background-color of a QLineEdit via style sheet, the QLineEdit begins to flicker on mouse-over (on Windows Vista or higher using default style; using e.g. Fusion style does not produce this problem).

      Example code:

      QLineEdit* flicker = new QLineEdit(this);
      flicker->setStyleSheet("QLineEdit {background: red;}");
      flicker->show();
      

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              rh Robert Habrich
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes