Results 1 to 9 of 9

Thread: Load Plugins on Windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Re: Load Plugins on Windows

    Quote Originally Posted by squidge View Post
    As stated, theres no need to change the slashes to back slashes.

    QPluginLoader doesn't support .a files, only DLL files.

    What is the error that is reported?
    There is no error message. The if(plugin) return false when it shouldnt. I also tried to put the dll and the exe in the same folder but it also didn't work

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Load Plugins on Windows

    Where is the Q_EXPORT_PLUGIN2 macro?

  3. The following user says thank you to Lykurg for this useful post:

    ruben.rodrigues (13th May 2011)

  4. #3
    Join Date
    Jun 2010
    Posts
    100
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    13
    Thanked 1 Time in 1 Post

    Default Re: Load Plugins on Windows

    Quote Originally Posted by Lykurg View Post
    Where is the Q_EXPORT_PLUGIN2 macro?
    I am going to kill my self right after I post this...can't fkin believe that I forgot the macro specially when I have it on my code under ubuntu...

    Thanks a lot Lykurg!

    By the way...I had also to change the backslashes(\) to fowardslashes(/)

  5. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Load Plugins on Windows

    Quote Originally Posted by ruben.rodrigues View Post
    There is no error message. The if(plugin) return false when it shouldnt. I also tried to put the dll and the exe in the same folder but it also didn't work
    I know you fixed this now, but when it returns false, typically QPluginLoader::errorString () is set to some message to explain why. Are you saying this was an empty string?

Similar Threads

  1. QPixmap cannot load data on Windows Mobile 6.1
    By _Stefan in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 31st August 2010, 11:57
  2. Why can Qt Creator use QPluginLoader to load plugins?
    By MorrisLiang in forum Qt Programming
    Replies: 4
    Last Post: 25th April 2010, 16:00
  3. How to load DLL(C/C++) in Qt on Windows?
    By josecarlosmissias in forum Newbie
    Replies: 1
    Last Post: 20th November 2009, 15:52
  4. Gifs don't load in QTextEdit under windows
    By balazsbela in forum Newbie
    Replies: 4
    Last Post: 26th August 2008, 22:28
  5. Application Plugins in Windows [XP]
    By dcurtis in forum Installation and Deployment
    Replies: 10
    Last Post: 9th February 2007, 03:01

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.