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

QML TextField QuickControls2 - placeholderText is almost transparent when background is black

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.0 Alpha
    • 5.10.0
    • Quick: Controls 2
    • None
    • b9584b13d53f36da5585051346d03a86650961bc

    Description

      TextField placeholder text is almost transparent and hardly visible when background of TextField is black(or any dark color). The defect is visible on Qt 5.10, on Qt 5.9.3 everything works fine.

      import QtQuick 2.9
      import QtQuick.Controls 2.3
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          TextField {
              id: textField
              width: 200
              height: 50
              anchors.centerIn: parent
              color: "white"
              placeholderText: "Search..."
              background: Rectangle {
                  anchors.fill: parent
                  color: "black"
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              cust0m1z3 Yordan Bonev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes