Results 1 to 3 of 3

Thread: create a plugins

  1. #1
    Join Date
    Apr 2011
    Posts
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question create a plugins

    i create 2 projects. in the first project i create few objects(declerativeItems) and used the qmlRegisterType to create the connection to qml.
    now i would like to use this objects in the second project, without to include the files in the pro file…..
    how can i do that correctly?
    i tried to use the CONFIG += … but this does not work.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: create a plugins

    Read about creating libs.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2011
    Posts
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: create a plugins

    i create a class inherit from QDeclarativeExtensionPlugin in the plugin project
    and create a dll for the plugin.
    now i want to use this from the second project...
    so in the qmlrir file of theis project i write:
    Qt Code:
    1. plugin mypluginname full/path/to/the/dll/file
    To copy to clipboard, switch view to plain text mode 
    but i got an error :
    module "mypluginname" is not installed

Similar Threads

  1. Replies: 17
    Last Post: 2nd January 2011, 17:11
  2. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 01:40
  3. How to use plugins in Qt?
    By kremuwa in forum Newbie
    Replies: 1
    Last Post: 27th February 2010, 09:13
  4. Replies: 4
    Last Post: 1st May 2009, 11:00
  5. 3D Plugins
    By synack in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2009, 12:26

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.