Solved ComboBox text color
-
Reading the documentation I cannot find a way to change the color of the text in a ComboBox (QtQuick.Controls 2.12).
I'm not talking about the dropdown menu, but just the displayed text.I see in the docs the ComboBoxStyle, but there are no examples. And trying to assign it to the
style
property:ComboBox { id: combo anchors.fill: parent model: _model style: ComboBoxStyle { textColor: _waiting ? "red" : "forestgreen"; }
is says
style
is a non-existing property.
What is the right way to do this? -
@Mark81 said in ComboBox text color:
Reading the documentation I cannot find a way to change the color of the text in a ComboBox (QtQuick.Controls 2.12)
https://doc-snapshots.qt.io/qt5-5.12/qtquickcontrols2-customize.html#customizing-combobox
-
The link doesn't work - still looking for an answer to Mark81's question