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

[Reg 5.11->5.12.2] Wrong color for placeholder text for QLineEdit if disabled in constructor of parent

    XMLWordPrintable

Details

    • macOS, Windows
    • bb00b63dee85bfe77bd721dd962c768e62c1b1e3 (qt/qtbase/dev) a6aa9bca33dd6c0d0312ff50a547950530943cee (qt/qtbase/6.0) 5a9bcf5d06d8a3790000875ec9c347ccae587b8f (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      In LineEdit, the Placeholder is expected to appear also in (light) blue, if enabled or disabled. This works, if the QLineEdit is enabled during the construction of surrounding widget.

      If the QLineEdit is disabled during construction, the placeholder is not in styled color (blue) but in (light) black when enabled.
      If the QLineEdit is enabled during construction, the disabled and enabled Placeholders are blue, which is fine.
      Please refer to the sample attached. It works fine with 5.11.3.

      Attachments

        Issue Links

          Activity

            People

              andysh Andy Shaw
              shmittal Shveta Mittal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: