Qt Forum

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

    Unsolved Native look on Mac

    QML and Qt Quick
    1
    1
    85
    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.
    • bart_janssens
      bart_janssens last edited by

      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 Reply Quote 0
      • First post
        Last post