Hi,
A follow-up.
I found this:
https://doc.qt.io/qt-5/qcombobox.html#maxVisibleItems-prop
So, I went to Valentina Studio Pro's documentation (probably should have started there):
Classes - qt - QComboBox
maxVisibleItems -> Number
This property holds the maximum allowed size on screen of the combo box, measured in items.
I think this is what I want.
So I entered the following in the comboBox's Signals QObject created:
this.comboBox.maxVisibleItems = 2;
But I couldn't get it to work. I also entered it into the main form's Signals QComboBox created.
From the QT documentation link above:
"Note: This property is ignored for non-editable comboboxes in styles that returns true for QStyle::SH_ComboBox_Popup such as the Mac style or the Gtk+ Style."
My combobox was non-editable. Thus, I checked Editable. Now looks like a comboBox (the non-editable ... just a long list one can scroll through). 10 entries.
Re-enter the code and the code is now working in the comboBox's Signals QObject created.
However, it doesn't work in some of my comboboxes, even after I checked Editable.
The comboboxes that don't work contain Aliases based on a query (and Items are also based on a query). Remove the Aliases and it works.
I am on Windows. Not sure if Preferences Appearance Styles impacts the non-editable / editable functionality.
Thanks,
Kevin