Need some help with QT Design Studio python integration
-
I made a simple ui project in qt design studio, but i'm having troubles running it in python.
Main window look like this
i'm using another qmls for a stack layout, therefore (i guess) in main qml i have import like this
import diploma9 1.0
My thought is that i'm doing smth wrong in my python code
Can you help me figure out why this is not working? Any help would be appreciated or any doc links, 'cause i'm obiously missing smth.
Btw, test.qml(its internals below) works just fine
import QtQuick.Controls 2.4 import QtQuick 2.0 ApplicationWindow { title: "Qt Quick Controls Gallery" visible: true width: 640 height: 480 Rectangle { width: 30 height: 30 color: "blue" } }
all project files: https://yadi.sk/d/fNtJ32T3jiWDrQ
UPD:
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
QQmlApplicationEngine failed to load component
file:///C:/Users/BlindGod/Documents/diploma9/diploma9.qml:2:1: module "diploma9" is not installed
getting this error while running scriptUP2:
Managed somehow to launch app by just removing "import diploma9 1.0" in diploma9.qml
I Guess this isn't right thing to do, because qt design studio makes this import by default, thus some features maybe won't work, time will tell