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

[REG] The color of QLineEdit and QPlainTextEdit placeholder text is not grayed-out if stylesheet was applied

    XMLWordPrintable

Details

    • macOS, Windows
    • df0b70eece (qt/qtbase/dev) df0b70eece (qt/tqtc-qtbase/dev) b3448282ef (qt/tqtc-qtbase/5.15) 09888b58d7 (qt/tqtc-qtbase/6.2) c38a954d9f (qt/qtbase/6.4) c38a954d9f (qt/tqtc-qtbase/6.4)

    Description

      If you set text color of a QLineEdit with stylesheet, for example:

      ui->lineEdit->setPlaceHolderText("placeholder");

      ui->lineEdit->setStyleSheet("QLineEdit {color:black}");

      The placeholder text is not grayed out. Instead it is displayed black. This is a regression. It does not happen with Qt 5.15.2, but happens in Qt 5.15.3. Also tried Qt 5.15.4 preview version, it didn't fix it.

      This is so disappointing  I bought a commercial license so that I can use Qt 5.15.3 to fix an annoying bug. Now I got an even more annoying bug... money well spent

      Attachments

        1. test.zip
          3 kB
          Robert Wong

        Issue Links

          For Gerrit Dashboard: QTBUG-92199
          # Subject Branch Project Status CR V

          Activity

            People

              vgt Eirik Aavitsland
              wtbuck Robert Wong
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes