Results 1 to 7 of 7

Thread: QComboBox write delay

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

    Default QComboBox write delay

    Dear All

    I have a problem,

    We have a QComboBox on our aplication, but it is not editable.

    We load the combo from sql and when we write to our combo if you are not fast enough you direct go to another word. Is there a function that would not forget the word you are writing.

  2. #2
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QComboBox write delay

    How can there be a "word you are writing" when the QComboBox is not editable?

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

    Default Re: QComboBox write delay

    I dont want it to be editable,

    If you combo is not editable you could still come on to it and start writing, I will come to word you are looking for if you are fast enough.

    If you are not it will not jump to another letter.

    like

    a 1 sec b 1 sec c

    you will find all the words in your combo,

    abc.....


    but if you do

    a 1 sec b 3 sec c

    you will find the words with

    c....

  4. #4
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QComboBox write delay

    I suppose you'll have to override keyPressEvent and implement the matching yourself.

  5. #5
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QComboBox write delay

    Or even better, take a look at QApplication::keyboardInputInterval

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

    Default Re: QComboBox write delay

    What I need is a popup and will go as I write...

    Bacause there is no insert in combo, and also no edit. If the users just write a combo and pass, maybe it wont be able to get a ID
    Last edited by aekilic; 28th March 2009 at 18:00.

  7. #7
    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 write delay

    Quote Originally Posted by aekilic View Post
    What I need is a popup and will go as I write...
    Have a look at QLineEdit with QCompleter.

Similar Threads

  1. Editable QComboBox with QItemDelegate
    By Jmgr in forum Qt Programming
    Replies: 11
    Last Post: 10th December 2008, 09:21
  2. QComboBox - Few virtual methods
    By gruszczy in forum Qt Programming
    Replies: 17
    Last Post: 16th July 2008, 16:08
  3. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 19:25
  4. FSWriteFork in MAC OS to write data to a file.
    By vishal.chauhan in forum General Programming
    Replies: 5
    Last Post: 2nd July 2007, 06:48
  5. using QComboBox as an ItemView
    By EricTheFruitbat in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 16:14

Tags for this Thread

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.