Is there and signal like edittingFinished in combo box? Or any what I could do it?
Printable View
Is there and signal like edittingFinished in combo box? Or any what I could do it?
What do u want to do ?
You can use QLineEdit::editingFinished, by getting the line edit from QComboBox::lineEditHope that does for you :)
How can I do it?
Code:
connect(m_combobox->lineEdit(), SIGNAL(...), this, ...);
set QComboBox's setEditable property in true, because
thenQuote:
...
Only editable combo boxes have a line edit.
...
Code:
... connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished())); ... void MyWidget::editingFinished() { ... }
This solved my problem...
Code:
connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));
hi everybody!
I had focused QCombobox1 and control item by "Up" "Down", but when press enter it can't focus to next QCombobox2.
I use ```connect(m_cb->lineEdit(), SIGNAL(editingFinished()), m_cb2, SLOT(setFocus()));```