How can i select the currentText of a QComboBox?
How can i select the currentText of a QComboBox?
do you mean in a lineEdit of QComboBox?
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
bismitapadhy (15th July 2009)
QLineEdit::selectAll
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
bismitapadhy (15th July 2009)
QComboBox has the following method QComboBox::lineEdit, but the comboBox must be editable. so, if it is, then only what you need it is to call QLineEdit::selectAll.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
bismitapadhy (15th July 2009)
This is not helping to select the content. To explain my Question i attached 2 picture. picture 1- is the picture what i have. \
picture 2- With selection content in the find what combobox.
So my Question is how can i select the find what content through program not manually.
did you even taken a look at the docs? The last post has the answer..
Qt Code:
combo->lineEdit()->selectAll()To copy to clipboard, switch view to plain text mode
that is it
bismitapadhy (15th July 2009)
Bookmarks