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

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

XMLWordPrintable

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

      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();
      

        1. qtbug42575.zip
          1 kB
          Friedemann Kleint
        2. QLineEdit style glitch.png
          3 kB
          Rafael Navega
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes