Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Need some help with QT Design Studio python integration
QtWS25 Last Chance

Need some help with QT Design Studio python integration

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 850 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BlindGod
    wrote on last edited by BlindGod
    #1

    I made a simple ui project in qt design studio, but i'm having troubles running it in python.
    Main window look like this
    ds.png

    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
    python_ds.png

    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 script

    UP2:
    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved