Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Module QtQuick is not installed (PyQt5)
Qt 6.11 is out! See what's new in the release blog

Module QtQuick is not installed (PyQt5)

Scheduled Pinned Locked Moved Unsolved Language Bindings
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • GrutG Offline
    GrutG Offline
    Grut
    wrote on last edited by
    #1

    Hi. I have a problem.
    I try to run simple script from tutorial.

    import sys
    from PyQt5.QtCore import QUrl
    from PyQt5.QtWidgets import QApplication
    from PyQt5.QtQuick import QQuickView
    
    # Main Function
    if __name__ == '__main__':
        # Create main app
        myApp = QApplication(sys.argv)
        # Create a label and set its properties
        appLabel = QQuickView()
        appLabel.setSource(QUrl('basic.qml'))
    
        # Show the Label
        appLabel.show()
    
        # Execute the Application and Exit
        myApp.exec_()
        sys.exit()
    

    vs simple qml code

    import QtQuick 2.0
    
    Rectangle {
        width: 250; height: 175
    
        Text {
            id: helloText
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
            text: "Hello World!!!\n Traditional first app using PyQt5"
            horizontalAlignment: Text.AlignHCenter
        }
    }
    

    When i run code, Python showing mistake.
    'Module "QtQuick" is not installed'

    I use pyqt5 and virtualenv on ubuntu.
    python-pyqt5.qtquick was installed.

    Two additional question.
    How to print in console(or window) version of module (and qml too)?
    How to point in python-script way to library

    Can anybody help me?
    Please :,-(

    1 Reply Last reply
    1

    • Login

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