Results 1 to 19 of 19

Thread: problem loading custom plugin on Qt Designer 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem loading custom plugin on Qt Designer 4

    Hello,
    Earlier this plugin had installed at /usr/local/Trolltech/QtopiaCore-4.3.5/plugins/designer which I later realised is not the path designer expects the plugins to be in since it was not loacting it.

    So I copied the plugins to
    /usr/lib/qt4/plugins/designer

    When I run the designer I get this error
    QLibrary:: load_sys : Cannot load /usr/lib/qt4/plugins/designer/libmywidgetplugin.so(/usr/lib/qt4/plugins/designer/libmywidgetplugin.so: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent)

    I have attached my source files for the plugin. mywidget.zip
    Attached Files Attached Files
    thanks,
    raman

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: problem loading custom plugin on Qt Designer 4

    This widget uses a symbol (QWidget::qwsEvent) which is not available in Qt. You have to compile it without that symbol if you want to run the widget in the desktop version of Qt.

  3. #3
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem loading custom plugin on Qt Designer 4

    I removed the event code this time from my source files .I have attached the updated code.I still get the same error :

    QLibrary:: load_sys : Cannot load /usr/lib/qt4/plugins/designer/libmywidgetplugin.so(/usr/lib/qt4/plugins/designer/libmywidgetplugin.so: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent)
    Attached Files Attached Files
    thanks,
    raman

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: problem loading custom plugin on Qt Designer 4

    Obviously you still reference that symbol somewhere.

  5. #5
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem loading custom plugin on Qt Designer 4

    I have commented out all the events....I checked again in the code....
    Is there anything else I need to do?
    Attached Files Attached Files
    thanks,
    raman

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: problem loading custom plugin on Qt Designer 4

    Your plugin loads fine for me but I don't see the widget in my widget box. You're missing the Q_OBJECT macro, I think.

  7. #7
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem loading custom plugin on Qt Designer 4

    I had actually removed the event code and object macro as well to test whether it loads at all without any errors.
    I guess there is something wrong with my designer because the plugin doesn't even load at my end.
    Can you please try loading the plugin from this attached code at your end?This is the original code.
    Attached Files Attached Files
    Last edited by raman_31181; 15th September 2008 at 06:22.
    thanks,
    raman

  8. #8
    Join Date
    Feb 2008
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problem loading custom plugin on Qt Designer 4

    Can anyone please help me with this.....I have been stuck for quite sometime now
    thanks,
    raman

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: problem loading custom plugin on Qt Designer 4

    Your plugin works fine for me. You must have some library mismatch. Try cleaning the whole project or use ldd to check if the plugin depends on appropriate versions of libraries.

Similar Threads

  1. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  2. Testing a custom Plugin
    By maluta in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2006, 15:09
  3. Custom plugin for a layout
    By cocheci in forum Qt Tools
    Replies: 2
    Last Post: 12th June 2006, 18:36
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Replies: 4
    Last Post: 1st March 2006, 23:11

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.