Results 1 to 7 of 7

Thread: QT4 Plugins - problems, problems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT4 Plugins - problems, problems

    Quote Originally Posted by NormanDunbar
    // Simple interface - returns some text in a QString.
    virtual QString GetText() const = 0;
    ...
    // Simple interface - returns some text in a QString.
    QString GetText();
    There is a "const" keyword missing after TextPlugin::GetText().

  2. #2
    Join Date
    May 2006
    Location
    Leeds, West Yorkshire, UK.
    Posts
    17
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT4 Plugins - problems, problems

    Quote Originally Posted by jacek
    There is a "const" keyword missing after TextPlugin::GetText().
    Indeed there was, thanks. I've fixed that as well. The real fix, however, was a missing #include <QtPlugin> in the cpp file. AT least, that allowed it to compile, I've yet to write the 'app' that uses the test plugin ...

    Cheers,
    Norman.

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT4 Plugins - problems, problems

    That is the hard part indeed. If you need some ideas have a look at the last version of DevQt, it uses a plugin system to customize every aspect of the app.
    Current Qt projects : QCodeEdit, RotiDeCode

  4. #4
    Join Date
    May 2006
    Location
    Leeds, West Yorkshire, UK.
    Posts
    17
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QT4 Plugins - problems, problems

    Afternoon,

    Quote Originally Posted by fullmetalcoder
    That is the hard part indeed. If you need some ideas have a look at the last version of DevQt, it uses a plugin system to customize every aspect of the app.
    Sppokily enough, I set a compilation of DevQt running this very morning - just to see what it is/does. I shall have to have a quick look now. Thanks for the pointer though.

    Cheers,
    Norman.

Similar Threads

  1. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 17th August 2007, 23:19
  2. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32

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
  •  
Qt is a trademark of The Qt Company.