Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Native look on Mac



  • 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


Log in to reply