Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved combobox drop menu style on Mac OS X

    QML and Qt Quick
    qtquick qtquick control qml
    2
    3
    1286
    Loading More Posts
    • 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.
    • S
      shav last edited by

      Hi everyone!

      I have a question about combobox style. In my application I need to change dropdown menu style. I found this:

      style: ComboBoxStyle {
          __dropDownStyle: MenuStyle {
              frame: Rectangle {
                  implicitHeight: 200
                  implicitWidth: control.width
                  color: "green"
                  clip: true
              }
              itemDelegate.label: Text {
                  color: styleData.selected ? "red" : "black"
                  text: styleData.text
              }
          }
      }
      

      But on OS X this code does't work. How I can change menu style for combobox?

      Mac OS and iOS Developer

      1 Reply Last reply Reply Quote 0
      • jpnurmi
        jpnurmi last edited by

        On OS X, it's a native menu popup that you can't style using QML.

        S 1 Reply Last reply Reply Quote 0
        • S
          shav @jpnurmi last edited by

          @jpnurmi Thanks for the reply. This bad news. I think I need find another way for solve my problem. I'll let you know about any progress in this.

          Mac OS and iOS Developer

          1 Reply Last reply Reply Quote 0
          • First post
            Last post