dwcronin
asked on
Qt use of QCombobox
I am using the Qt libraries. I have an option on one of my menus "DiscStim" that open up a DiscStim window that has a "Destination" QCombobox in it. I have some irrelevant selections: call them dest1, dest2, and dest3 that are available when you click on the Destinations QCombobox. Initially there is no text in the QCombobox. Unfortunately if you choose something - says dest1, if you then close the DiscStim window, and then choose DiscStim from the menu again, the previous selection is still there. My questions are:
1) how do I make Destinations QCombobox blank every time I open the DiscStim window? Blank is not one of the QCombobox options. It's only there until you open the QCombobox and select something else.
2) When it is blank, it is blue. How do I do that?
Thanks,
Dan
1) how do I make Destinations QCombobox blank every time I open the DiscStim window? Blank is not one of the QCombobox options. It's only there until you open the QCombobox and select something else.
2) When it is blank, it is blue. How do I do that?
Thanks,
Dan
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.