Results 1 to 3 of 3

Thread: Using QML Components for the Desktop with PySide

  1. #1
    Join Date
    Aug 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Using QML Components for the Desktop with PySide

    Hey guys,

    I'm developing an App using the Components for the Desktop and PySide and I have a problem with the import of the Components. Up till now i was only using the QT Creator for building my QML-Gui. Now I tried to use the gui in a pyside application and now i get this error when i try to start the application:

    file:///Users/Hannes/Coding/PxSt/UserClient/Components/JobList_View.qml:189:5: Type ScrollAreaHelper unavailable
    ScrollAreaHelper {
    ^

    seems like pyside doesn't find the installed Desktop components. Using the QML-Viewer everything works fine. do i have to set an import path so that pyside finds the components?

    regards

  2. #2
    Join Date
    Aug 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Using QML Components for the Desktop with PySide

    just to let you guys know. if you start the QML through PySide the Plugins are handled by PySide too. So you have to expose new plugins to QML using QtDeclarative.qmlRegisterType. For that to work you have to write a wrapper for your cpp-Plugings or rewrite them in PySide.

    regards

  3. #3
    Join Date
    Feb 2010
    Location
    Brazil
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using QML Components for the Desktop with PySide

    Hello, I'd like to know if you managed to use Qt Desktop Components with Pyside. I'm trying to use it too, but I don't know much about how I can bring those C++ classes (QStylePlugin, QStyleItem, etc...) to Python. Could you please elaborate?

Similar Threads

  1. QtCreator and Desktop Components
    By Splashy in forum Qt Quick
    Replies: 6
    Last Post: 24th March 2012, 00:43
  2. Replies: 2
    Last Post: 16th March 2012, 14:22
  3. Replies: 0
    Last Post: 26th February 2012, 16:48
  4. Pyside needs QT?
    By junichiro in forum Installation and Deployment
    Replies: 0
    Last Post: 30th July 2011, 15:13
  5. Replies: 0
    Last Post: 21st May 2011, 22:19

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.