Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to install plugin qmlcanvas?

How to install plugin qmlcanvas?

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 3.0k Views
  • 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.
  • Q Offline
    Q Offline
    QtAle
    wrote on last edited by
    #1

    Hi!
    I would like to add the plugin qmlcanvas (http://qt.gitorious.org/qt-labs/qmlcanvas) to my project. I have downloaded the source code by git://gitorious.org/qt-labs/qmlcanvas.git and I have compiled it. This generates the lib libcanvasplugin.so.....now how can I add this plugin to my project?
    I tried to copy the lib libcanvasplugin.so into my LD_LIBRARY_PATH but when I write "import Canvas" in my qml file it doesn´t find it.
    I use OS Ubuntu 10 with Qt Creator 2.3.0.
    Thanks for your help!
    Regards

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try adding it to your .pro file, too (In Qt Creator, open .pro and right-click inside the editor, then - if I remember well - Add library).

      But, it can also be the case that the rest of the set up is not adequate (QML Canvas is new and in labs, it may have some special requirements, like building against 4.8 or 5.0).

      (Z(:^

      1 Reply Last reply
      0
      • K Offline
        K Offline
        krisztian_andre
        wrote on last edited by
        #3

        I did add qmlcanvas as an external library to my .pro file resulting in these entries:

        @
        unix:!macx:!symbian: LIBS += -L$$PWD/../qt-labs-qmlcanvas/Canvas/ -lcanvasplugin

        INCLUDEPATH += $$PWD/../qt-labs-qmlcanvas/Canvas
        DEPENDPATH += $$PWD/../qt-labs-qmlcanvas/Canvas
        @

        but the Canvas element still shows up as unknown in qt creator. Do I have to add an import line to my qml file, did you manage to use this plugin at the end?

        [EDIT: code formatting, please wrap in @-tags, Volker]

        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