There is an elegant solution if the QComboBox
is editable
:
myQComboBox->lineEdit()->setPlaceHolderText("Please select");
QComboBox
es that are not editable
do not have QLineEdit
s in them, so this would not work on those.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…