Results 1 to 5 of 5

Thread: Plugins as small application

  1. #1
    Join Date
    Jan 2006
    Location
    Saint-Petersburg (Russia)
    Posts
    41
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Plugins as small application

    I have my big application, and wish that my clients get only DLL`s thats thay need.
    So, every DLL have very big functionality WITH .ui files and graphic

    How can I implement this?
    It seems like:
    Main window with tab control, I search for plugins, is find them, create new tab in TabControl and implement dialogs, main interface in tab, classes.
    In low level API for plugins or with DESIGNER plugins?
    Can you help me?
    Last edited by blackliteon; 11th January 2006 at 08:28.
    Succes is 5% of talent and 95% of work!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    52
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plugins as small application

    Hi,

    I try to do something similar with my app MKBlog. I played with different concepts of how to use plugins with Qt and C++. First I saw that Qt also offers a plugin concept, but thought that it was only to extend Qt-Designer or so... then I realized that this was really generic stuff. Now I use it myself in my little app that I try to build.
    What you have to do, is fairly good documented here:
    Main-App and it's Plugins.

    What you need to know is that qmake knows a third option to create projects:

    1) app
    2) lib
    3) plugin <---

    The third is the target type your plugins must use. It's working great. After using QPluginLoader to load the plugin, it really doesn't matter if it's a UI class implementing a widget, or some business logic.

    Hope it helps... good luck

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    52
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plugins as small application

    ups.. not quite correct. Off course the target template for a plugin is still lib!!! But you need to add a config entry:

    CONFIG += plugin

    to you plugin project...

  4. #4
    Join Date
    Jan 2006
    Location
    Saint-Petersburg (Russia)
    Posts
    41
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plugins as small application

    Thanks!
    I just dont know about this future in QT..
    Succes is 5% of talent and 95% of work!

  5. #5
    Join Date
    Jan 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Talking Re: Plugins as small application

    Plugins are working great for me. Also have a big application and broke it into plugins. Just remember to export all the methods and functions you will need to use the plugin and also remember to setup an interface with pure virtual functions ....

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 13:35
  2. Replies: 3
    Last Post: 7th May 2008, 12:33
  3. QWidget-derived Application Plugins
    By SnarlCat in forum Qt Programming
    Replies: 2
    Last Post: 25th March 2008, 19:25
  4. Replies: 0
    Last Post: 18th February 2008, 11:53
  5. i have a problem in a very small application?
    By coder1985 in forum Qt Programming
    Replies: 3
    Last Post: 22nd November 2007, 18:09

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.