Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Pyside gives "module "QtQuick" version 2.0 is not installed"
pioupus last edited by
Hi when i try to run my Python code:
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtDeclarative import *
def __init__(self, parent=None): super(MainWindow, self).__init__(parent) self.setWindowTitle("Main Window") # Renders 'view.qml' self.setSource(QUrl.fromLocalFile('test_gui/test_gui.qml')) # QML resizes to main window self.setResizeMode(QDeclarativeView.SizeRootObjectToView)
with the qml file
import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
I get a "module "QtQuick" version 2.0 is not installed" or if i change to QtQuick1.0 I get
"module "QtQuick.Controls" is not installed" I am pretty sure the pathes are not defined well. I am using Ubuntu 12.04 with Qt5.2 installed in /opt/Qt...
If somebody had an idea I would be very happy