Results 1 to 2 of 2

Thread: Plugins question/problem

  1. #1
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Angry Plugins question/problem

    I am trying to work out how to implement plugins but I am getting the following error:

    Qt Code:
    1. In file included from helloworld_plugin.h:1,
    2. from helloworld_plugin.cpp:1:
    3. ../plugins.h:12: error: expected identifier before string constant
    4. ../plugins.h:12: error: expected `,' or `...' before string constant
    To copy to clipboard, switch view to plain text mode 

    This is the piece of code in question:

    Qt Code:
    1. #ifndef INTERFACES_H
    2. #define INTERFACES_H
    3.  
    4. class QString;
    5.  
    6. class PluginInterface
    7. {
    8. public:
    9. virtual QString getString() = 0;
    10. };
    11.  
    12. Q_DECLARE_INTERFACE(PluginInterface, "PluginExample.PluginInterface/1.0")
    13.  
    14. #endif
    To copy to clipboard, switch view to plain text mode 


    What am I doing wrong?

    Qt4.1.4 and MinGw on winxp

    Thanks,
    Royce

  2. #2
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plugins question/problem

    ADMIN - Please delete as I was being a prize plum.

Similar Threads

  1. symbol lookup error when using plugins
    By macbeth in forum Qt Programming
    Replies: 3
    Last Post: 29th July 2006, 10:54
  2. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 15:01
  3. How to reload widget plugins?
    By victorng in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2006, 00:27
  4. Plugins that use *.ui based classes
    By blackliteon in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2006, 10:33
  5. Plugins as small application
    By blackliteon in forum Qt Programming
    Replies: 4
    Last Post: 12th January 2006, 10:39

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.