Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Quick Controls 1 - ComboBox items unselectable on MacOS

Quick Controls 1 - ComboBox items unselectable on MacOS

Scheduled Pinned Locked Moved Solved QML and Qt Quick
combobox macos
9 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Plamen Petkov
    wrote on last edited by Plamen Petkov
    #1

    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 Sur

    NOTE: 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.

    Selection_007.png

    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)

    Screenshot-MacOS.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you provide a minimal compilable example that shows this behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Plamen Petkov
        wrote on last edited by
        #3

        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:

        Screenshot 2021-01-27 at 17.12.08.png

        The ComboBox in the main window is ok:

        Screenshot 2021-01-27 at 17.13.54.png

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Plamen Petkov
          wrote on last edited by
          #4

          @SGaist Given the example, am I doing something wrong?

          J.HilkJ 1 Reply Last reply
          0
          • P Plamen Petkov

            @SGaist Given the example, am I doing something wrong?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @Plamen-Petkov seems to be a QtQuick.Controls 1 issue

            when you change the import to QtQuick.Controls 2 both combobox popups work fine!


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            P 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @Plamen-Petkov seems to be a QtQuick.Controls 1 issue

              when you change the import to QtQuick.Controls 2 both combobox popups work fine!

              P Offline
              P Offline
              Plamen Petkov
              wrote on last edited by
              #6

              @J-Hilk That is correct, however I want to stay with Quick Controls 1, until I migrate the whole application to QC 2.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                P 1 Reply Last reply
                0
                • SGaistS SGaist

                  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.

                  P Offline
                  P Offline
                  Plamen Petkov
                  wrote on last edited by Plamen Petkov
                  #8

                  @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... :-(

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    The patch is public so you can build the module yourself to have the fix.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved