• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 423
  • Last Modified:

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?

1 Solution
1. Do this

QComboBox* c;


2. Not possible
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now