PDA

View Full Version : QComboBox editingFinished



aekilic
16th April 2009, 22:33
Is there and signal like edittingFinished in combo box? Or any what I could do it?

aamer4yu
17th April 2009, 05:36
What do u want to do ?
You can use QLineEdit::editingFinished, by getting the line edit from QComboBox::lineEdit
Hope that does for you :)

aekilic
17th April 2009, 07:26
How can I do it?

Lykurg
17th April 2009, 07:28
connect(m_combobox->lineEdit(), SIGNAL(...), this, ...);

spirit
17th April 2009, 07:31
set QComboBox's setEditable property in true, because


...
Only editable combo boxes have a line edit.
...

then


...
connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));
...
void MyWidget::editingFinished()
{
...
}

aekilic
17th April 2009, 12:02
This solved my problem...


connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));

vinh
28th November 2020, 08:17
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()));```