Is there and signal like edittingFinished in combo box? Or any what I could do it?
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?
Qt Code:
connect(m_combobox->lineEdit(), SIGNAL(...), this, ...);To copy to clipboard, switch view to plain text mode
set QComboBox's setEditable property in true, because
then...
Only editable combo boxes have a line edit.
...
Qt Code:
... connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished())); ... void MyWidget::editingFinished() { ... }To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
aekilic (17th April 2009)
This solved my problem...
Qt Code:
connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));To copy to clipboard, switch view to plain text mode
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()));```
Bookmarks