Last edited by BrainB0ne; 13th January 2006 at 13:07.
..:: Still Standing Strong ::..
Install an event filter on it and filter out the return and enter keys.
So it means I have to subclass QComboBox (e.g MyComboBox) and override keyPressEvent by adding it to MyComboBox?Originally Posted by wysota
edit: thx wysota, you solved my problem
Last edited by BrainB0ne; 13th January 2006 at 13:00.
..:: Still Standing Strong ::..
No, you have to apply an "eventFilter" (installEventFilter() and eventFilter()).
Thx! I will try it out on Monday at my work, didn't realize that you meant this..Originally Posted by wysota
The subclassing method worked also, but your solution looks better
..:: Still Standing Strong ::..
It's not "better". It's "quicker" and "simpler"Originally Posted by BrainB0ne
May be you should try method setInsertionPolicy( QComboBox::NoInsertion).
Thank you also for your solution.. will try it out after this weekendOriginally Posted by vitaly
edit: Vitaly, I used your solution, seems to work great for my application
Last edited by BrainB0ne; 16th January 2006 at 08:57.
..:: Still Standing Strong ::..
Bookmarks