PlaceHolder in ComboBox
Solved
QML and Qt Quick
-
wrote on 6 Jul 2019, 20:28 last edited by
Hi,
Is there an easy way to add placeholder text to a ComboBox?
I am sure it has to do something with the index, but I was unable to figure out how to do it.
Thank you for your help. -
wrote on 7 Jul 2019, 19:21 last edited by
I figured it out:
displayText: currentIndex === -1 ? "Choose ..." : currentIndex
2/2