Results 1 to 2 of 2

Thread: multiple exported interfaces in one plugin - how to?

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default multiple exported interfaces in one plugin - how to?

    It is stated in the documentation for Q_EXPORT_PLUGIN2 macro:
    There should be exactly one occurrence of this macro in the source code for a Qt plugin
    .
    My questions are:
    1. Is it possible to export more then one class in a single plugin?
    2. If yes then how it should be done?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: multiple exported interfaces in one plugin - how to?

    You can export a plugin that will be an interface to more than one class. QDesignerCustomWidgetCollectionInterface is an example of such approach.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Object and multiple inheritance for interfaces
    By brcain in forum Qt Programming
    Replies: 8
    Last Post: 29th June 2021, 15:29
  2. multiple designer plugin in one DLL.
    By janEUcitzen in forum Qt Programming
    Replies: 5
    Last Post: 11th March 2009, 10:41
  3. Plugin interfaces, signals and slots
    By QPlace in forum Qt Programming
    Replies: 8
    Last Post: 9th August 2007, 21:19
  4. QVariant and Plugin interfaces
    By QPlace in forum Qt Programming
    Replies: 9
    Last Post: 6th August 2007, 00:04
  5. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13

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.