Qt combobox
-
I have created a ui file which has combobox in it. combobox has 2 items.Im accessing the combobox in code to retrieve data.But not changing anything related to items any where.When I run the application an empty space gets added at the last in the combobox.And the first element goes on top.Which is not visible to user.User has to use the side button to drag it up.And it's intermittent.Any idea why it's happening?
I'm using qt4.8 and rhel6 -
Hi and welcome to devnet,
Putting aside the fact that Qt 4 has reached end of life almost a decade ago, for such a simple UI, I would recommend doing everything in code.
That said, what are the settings of your QComboBox ? -
S SGaist moved this topic from The Lounge on