This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make Kirigami Apps use the Breeze theme?

Tags: None
(comma "," separated)
jenskj
Registered Member
Posts
2
Karma
0
OS
I am currently getting started with Kirigami in Python and have one problem:
I use this code to load a qml file:
Code: Select all
#!/usr/bin/python3

from PySide2.QtWidgets import *
from PySide2.QtGui import QGuiApplication
from PySide2.QtQml import QQmlApplicationEngine
import sys

if __name__ == "__main__":

    app = QGuiApplication()
    engine = QQmlApplicationEngine()
   

    context = engine.rootContext()
    engine.load("qml/main.qml")

    if len(engine.rootObjects()) == 0:
        quit()
    app.exec_()


However, the result does not look good. Buttons for example do not use the Breeze theme:
Image
This looks completely different compared to how buttons look in Kirigami Gallery:
Image

Thank you very much for your help!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]