Quick Controls 1 - ComboBox items unselectable on MacOS
-
Hi,
OS: MacOS 11.1 Big Sur
Qt: 5.15.2
Build env: Xcode 11.7, SDK 10.15
Run env: MacOS 11.1 Big SurNOTE: Quick Controls 1 (one)
When I click the ComboBox control I can see the dropdown with all the elements from the model, however it is not possible to select any item (they seem as disabled, dimmed). The only way to change the combobox value is to hover the mouse over the control and spin the mouse wheel.
Same code works fine on Linux!:
In the following picture you can see the combobox dropdown open and I CAN select the item, because this is Linux.
On MacOS, the dropdown is greyed (dimmed) and selection is not possible.
Needless to say this is very blocking bug (?) or maybe I am missing something.
It was tested with very simple ComboBox, just having a model and nothing else (no events whatsoever).
Edit: (added screenshot from MacOS)
-
Hi and welcome to devnet,
Can you provide a minimal compilable example that shows this behaviour ?
-
Here it is: https://github.com/plamendp/qt-combobox-in-dialog-issue
Build Env:
- MacOS Xcode 11.7
- SDK 10.15
- Qt 5.15.2
It appears the problem is only inside a Dialog. Here is a screenshot of the Opened dialog and combobox inside:
The ComboBox in the main window is ok:
-
@SGaist Given the example, am I doing something wrong?
-
@Plamen-Petkov seems to be a QtQuick.Controls 1 issue
when you change the import to QtQuick.Controls 2 both combobox popups work fine!
-
Then you can check the bug report system to see if there's anything related.
If not, you can open a new report providing your example and conclusions.
-
@SGaist Thanks, will do.
Should I mark this topic as resolved? My problem is not solved, but I got what I need so far - a confirmation the issue is not on my side (probably).
EDIT: Actually: Here is the related bug report:
https://bugreports.qt.io/browse/QTBUG-89607
It seems this bug is fixed in 5.15.3, but sadly it is only for Commercial licenses. Huh... :-(
-
The patch is public so you can build the module yourself to have the fix.