In Qt Qml Controls, ApplicationWindow lacks the native-looking theme when run

前端 未结 1 1036
臣服心动
臣服心动 2020-12-11 04:19

Qml Controls comes with a nice native-like theme by default. When I run my program as qml files through the interpreter, it looks great, however, once I copy my code over to

相关标签:
1条回答
  • 2020-12-11 05:00

    Documentation

    We are using QApplication and not QGuiApplication in this example. Though you can use QGuiApplication instead, doing this will eliminate platform-dependent styling. This is because it is relying on the widget module to provide the native look and feel.

    If this will not help you I will be terribly suprised.

    0 讨论(0)
提交回复
热议问题