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

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

XMLWordPrintable

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

      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"
              }
          }
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes