Results 1 to 8 of 8

Thread: Qt 4.3.1 Windows Svg plugin problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Location
    Kędzierzyn-Koźle
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qt 4.3.1 Windows Svg plugin problem

    But I want to have iconengines in plugins directory. So what should I do ?

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

    Default

    Read my post above. The directory name (or path) where the "iconengines" directory is located doesn't matter. All that matters is the existance of "iconengines" directory in one of the directories in the library search path.

    Quote Originally Posted by tzioboro View Post
    But I want to have iconengines in plugins directory. So what should I do ?
    Short answer: you can't.

    Long answer: Take a look at QCoreApplication sources. Plugins are loaded from within there. Maybe you can load the plugin yourself from a custom location.

    Medium answer: compile the plugin statically into your application (see "static plugins" in the docs).

  3. #3
    Join Date
    Dec 2006
    Location
    Kędzierzyn-Koźle
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qt 4.3.1 Windows Svg plugin problem

    Quote Originally Posted by wysota View Post
    Read my post above. The directory name (or path) where the "iconengines" directory is located doesn't matter. All that matters is the existance of "iconengines" directory in one of the directories in the library search path.



    Short answer: you can't.

    Long answer: Take a look at QCoreApplication sources. Plugins are loaded from within there. Maybe you can load the plugin yourself from a custom location.

    Medium answer: compile the plugin statically into your application (see "static plugins" in the docs).
    Ok I did read your post above. And I totaly agree with you. I was wondering why
    C:\Tmp\plugins\iconengines\qsvg4.dll
    could not be loaded when "custom" path is added this custom path is
    C:\Tmp\plugins
    by QCoreApplication::addLibraryPath(... +QString("\plugins");
    and it is working for anything else like
    C:\Tmp\plugin\iconengines\qsvg4.dll
    and QCoreApplication::addLibraryPath(... +QString("\plugin"); in code.

    I don't see in QCoreApplication code why custom path can not be in C:\Tmp\plugins.

    I know that it does not matter where iconengines is until it is in library search path - but it is in this path. I just wondering why it is not working. I am using this approach to have plugins in one direcotry (generaly for sqldrivers) in two other projects and it works.

Similar Threads

  1. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13
  2. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 20:05
  3. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 18:33
  4. QPSQL plugin problem
    By tuxi in forum Qt Programming
    Replies: 0
    Last Post: 12th March 2007, 21:44
  5. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 18:36

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.