widgets: mini combo-box (popup) draws wrong on windows
-
on mac, i have a "mini" style popup (combo-box), looks like this:
See the dual up/down chevrons to the right of the genre text edit? that is a combo box just made small. looks good. and it pops up correctly:
On Windows, it looks fine when not popped up, but when it IS, it's totally broken:
is there a way to have the unclicked control be one width, but the dropdown list view be a different width? it works in the previous iteration of my app (32bit):
-
Hi,
How did you implement that combo box ?
-
It's just a regular text edit, then next to it a "popup" menu that is shrunk real small.
This is a legacy app (with 15+ years of old code) that must compile under xcode (10.14 carbon), Visual Studio (2008 win32), and Qt (mac and win). There is no "combo box" API on mac, so this was the way it was done "back in the day". I just ported the code to Qt.
It seems I may need to just have a bit of custom code then for Qt to make it a "real" combo-box?
But it would make the code SO much simpler (and i wouldn't have to have more than one line of "special case" code) if i could just tell the menu that shows to be wider?
-
Well, then how did you implement that popup menu ?
-
in Qt, it's a combobox, just small horizontally.
i want it to draw small, but pop up BIG (wide) -
Then you will likely have to create a subclass and reimplement the showPopup method to adjust the size of the pop on Windows.