Results 1 to 3 of 3

Thread: qt plugin development question

  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Smile qt plugin development question

    Hi everybody, mi question is very simple:

    Imaging that I have a main project extensible by plugins and a secundary project that defines a plugin.

    Can I from the plugin project instanciate and use a class defined in the main project?

    I have read the "How to create a Qt plugin" and I have seen examples but they never use classes defined in the parent project.

    Thanks for all and sorry, my English is not very well.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qt plugin development question

    Sure, as long as you define a suitable interface that can cross a DLL boundary, such as http://chadaustin.me/cppinterface.html

  3. #3
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qt plugin development question

    Ok, I will try it, thanks a lot!

Similar Threads

  1. Voip Development Kit
    By alienpenguin in forum Qt-based Software
    Replies: 9
    Last Post: 13th July 2012, 09:08
  2. Game Development
    By AlexanderPopov in forum General Discussion
    Replies: 6
    Last Post: 15th October 2011, 00:55
  3. Replies: 1
    Last Post: 13th August 2009, 16:32
  4. Newbie question regarding multi platform development
    By bronkopavel in forum Installation and Deployment
    Replies: 2
    Last Post: 15th September 2008, 10:08
  5. Plugin implementation question
    By JPNaude in forum Qt Programming
    Replies: 12
    Last Post: 27th August 2008, 20:24

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.