From 72a3da3d4d69e09e90399aef8434cc6b194ff984 Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Fri, 16 Sep 2022 15:29:10 +0200 Subject: Style sheets: add placeholder text color property for edit widgets The placeholder text was given its own QPalette color role in Qt 5.12, but there has been no way to specify it from a Qt style sheet. Fixes: QTBUG-93009 Change-Id: If58ca844c19c65b7eee14c6d5730a4ba27640c33 Reviewed-by: Volker Hilsheimer --- src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/doc/snippets/code') diff --git a/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc b/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc index 6b4a472275d..d5050405907 100644 --- a/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc +++ b/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc @@ -1849,3 +1849,6 @@ QTableView::indicator:unchecked { * { widget-animation-duration: 100 } //! [162] +//! [163] +QLineEdit { placeholder-text-color: #800000ff } /* semi-transparent blue */ +//! [163] -- cgit v1.2.3