Module QtQuick is not installed (PyQt5)
Unsolved
Language Bindings
-
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 libraryCan anybody help me?
Please :,-(