Results 1 to 2 of 2

Thread: Create extensible application with Qt

  1. #1
    Join Date
    May 2011
    Posts
    46
    Thanks
    5

    Default Create extensible application with Qt

    Perhaps my application is extensible, users can write plugins for it via api provided by my application, such api and headers will not expose any qt-specific objects.

    For instance:
    Qt Code:
    1. // public declaration available to my app's user
    2. class MyApplication
    3. {
    4. const char* virtual name() const = 0;
    5. };
    6.  
    7. // private declaration
    8. class MyApplicationExport MyApplicationPrivate : public MyApplication, public QApplication
    9. {
    10. QString qName() const;
    11. const char* virtual name() const {return qName();}
    12. };
    To copy to clipboard, switch view to plain text mode 

    Questions
    1.) Is this the way to go for something like an extensible application? Any potential issue with this setup?

    2) As far as I understand, my app's users are indirectly programming with Qt, through an abstract layer of my application, will there be any licensing issues with Qt?

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Create extensible application with Qt

    What do you mean with "my application is extensible"?

    Your example code is very strange.

    Qt supports application extensibility through Plugins.

    IMHO You have to define the application logic in your code and let plugins-writer free to implements details.
    A camel can go 14 days without drink,
    I can't!!!

Similar Threads

  1. How to create application help?
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2009, 19:18
  2. Unable to successfully create Qt application
    By remy06 in forum Qt Programming
    Replies: 1
    Last Post: 25th April 2009, 13:51
  3. How to Create Executable file for my QT application
    By c_srikanth1984 in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 04:02
  4. How can I create this application?
    By hgedek in forum Qt for Embedded and Mobile
    Replies: 10
    Last Post: 19th January 2008, 16:21
  5. Two question about create an application.
    By Kenneth in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 19th March 2007, 22:21

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.