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. Consistent look for a Combobox on Mac and Windows?
Qt 6.11 is out! See what's new in the release blog

Consistent look for a Combobox on Mac and Windows?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 803 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    ali-hirani
    wrote on last edited by A Former User
    #1

    The Windows combobox doesn't fit with the look of our application. I was wondering if there was a way to force the Windows combobox to look like the one on OSX through qml or otherwise?

    ComboBox{
        id: languageSelectionDropdown
        model: LanguageClass.languageList();
        height: 40
        onCurrentIndexChanged: {
           // do stuff
        }
    }
    
    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! Yes, you can style the ComboBox as you wish. See Customizing Qt Quick Controls 2.

      1 Reply Last reply
      1

      • Login

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