PDA

View Full Version : QComboBox write delay



aekilic
28th March 2009, 17:03
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.

drhex
28th March 2009, 17:22
How can there be a "word you are writing" when the QComboBox is not editable?

aekilic
28th March 2009, 17:29
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....

drhex
28th March 2009, 17:31
I suppose you'll have to override keyPressEvent and implement the matching yourself.

drhex
28th March 2009, 17:43
Or even better, take a look at QApplication::keyboardInputInterval

aekilic
28th March 2009, 17:55
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

Lykurg
28th March 2009, 18:33
What I need is a popup and will go as I write...
Have a look at QLineEdit with QCompleter.