Pyside gives "module "QtQuick" version 2.0 is not installed"



  • Hi when i try to run my Python code:
    @
    import sys
    from PySide.QtCore import *
    from PySide.QtGui import *
    from PySide.QtDeclarative import *

    class MainWindow(QDeclarativeView):

    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

    thank you,

    Pioupus


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.