[Qt-interest] QComboBox focus problem
jarkko.marjeta at tietosaab.com
jarkko.marjeta at tietosaab.com
Tue Jan 20 08:09:44 CET 2009
Hi all,
I am still a beginner with Qt (currently using 3.3.8) and I have the
following problem.
I would like to implement functionality on a legacy application in which
I populate the combo box with strings depending on user input. A close
analogy would be for example firefox address field where visited
addresses are added to the "popup" for selection.
I am now able to populate the combobox with correct strings and popup
it, but I cannot figure out, how to set focus to combo boxes line edit
rather than the first element in the popup. This forces the user to
change focus manually every time a key has been pressed (which also
closes the popup). So I am asking if there is a way to keep the focus in
the line edit field while keeping popup open and populating the popup
with strings based on the user input.
Thank you for your help.
Best Regards,
Jarkko
More information about the Qt-interest-old
mailing list