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

Defining a different fontSize according to OS [SOLVED]



  • I developed a QML application and it displays perfectly on Mac but same size font is much bigger when running application on Windows. Is there a way to define a different font size according to the OS (using only QML/javascript code)) ?

    thanks

    Bidochon



  • As usual, I just need to post a question to find the answer a few seconds later
    @
    import QtQuick 2.0
    ...
    console.log(Qt.platform.os)
    @

    Bidochon


Log in to reply