Results 1 to 7 of 7

Thread: QComboBox editingFinished

  1. #1
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QComboBox editingFinished

    Is there and signal like edittingFinished in combo box? Or any what I could do it?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox editingFinished

    What do u want to do ?
    You can use QLineEdit::editingFinished, by getting the line edit from QComboBox::lineEditHope that does for you

  3. #3
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox editingFinished

    How can I do it?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QComboBox editingFinished

    Qt Code:
    1. connect(m_combobox->lineEdit(), SIGNAL(...), this, ...);
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QComboBox editingFinished

    set QComboBox's setEditable property in true, because
    ...
    Only editable combo boxes have a line edit.
    ...
    then
    Qt Code:
    1. ...
    2. connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));
    3. ...
    4. void MyWidget::editingFinished()
    5. {
    6. ...
    7. }
    To copy to clipboard, switch view to plain text mode 
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  6. The following user says thank you to spirit for this useful post:

    aekilic (17th April 2009)

  7. #6
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QComboBox editingFinished

    This solved my problem...

    Qt Code:
    1. connect(m_cb->lineEdit(), SIGNAL(editingFinished()), SLOT(editingFinished()));
    To copy to clipboard, switch view to plain text mode 

  8. #7
    Join Date
    Nov 2020
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QComboBox 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()));```

Similar Threads

  1. Editable QComboBox with QItemDelegate
    By Jmgr in forum Qt Programming
    Replies: 11
    Last Post: 10th December 2008, 10:21
  2. QDataWidgetMapper and QCombobox
    By miraks in forum Qt Programming
    Replies: 4
    Last Post: 6th December 2008, 18:53
  3. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 20:25
  4. QComboBox in QTableWidget : display troubles.
    By Nyphel in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2007, 00:29
  5. using QComboBox as an ItemView
    By EricTheFruitbat in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 17:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.