qt - qcombobox: use non-first character for keyboard navigation -


Assume that I have a list of items:

  "1 apple 1" , "02 Apple 2", "03 banana", "04 orange 1", "05 orange 2"  

Is there a way to create a QComboBox " Ken "to select" Code "> 04 Orange 1" and "B" to select the "O" user (for example).

< Div class = "post-text" itemprop = "text">

You can use an event filter for this purpose. For your combo box. Install an Event Filter if the Event Type is QEvent :: KeyPress , find out which key is pressed and if you are interested, then your widget / dialog / main window will need the necessary information Simply emit the signal that combo-box.

You can find an example.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -