0

how to select a text which I have add to my QComboBox by comboBox->setEditText(someString). I want my text to be appeared by "selecting all the text" in combobox.

NDestiny
  • 1,133
  • 1
  • 12
  • 28

1 Answers1

1

#include <QLineEdit> .... ui->comboBox->lineEdit()->selectAll();

If I understood question.

kajojeq
  • 886
  • 9
  • 27