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. Native look on Mac
Forum Updated to NodeBB v4.3 + New Features

Native look on Mac

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 212 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.
  • bart_janssensB Offline
    bart_janssensB Offline
    bart_janssens
    wrote on last edited by
    #1

    Hi,

    I have tried two ways to get a native look in QML. First using Qt Quick Controls 1:

    style-mac-qqc1.png

    Secondly using the KDE QQC2 style:

    style-mac-qqc2.png

    I'm mostly happy with how this works out, but as you can see the text in the buttons and drop-down menu is not centered vertically. Is there an option that I can set to fix this? I have noticed that the same problem exists in the Qt Quick Controls 1 examples that come with the Qt distribution. It seems to be related to the style, since using the default style in Qt Quick Controls 2 looks perfect (but non-native, of course):

    style-mac-default.png

    For reference, the QML code for the QQC2 version is here: https://github.com/barche/QML.jl/blob/master/example/qml/progressbar.qml

    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