Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Pyside gives "module "QtQuick" version 2.0 is not installed"

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

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 1.6k 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.
  • P Offline
    P Offline
    pioupus
    wrote on last edited by
    #1

    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

    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