Results 1 to 6 of 6

Thread: qtextbrowser and imageformats plugins

  1. #1
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qtextbrowser and imageformats plugins

    In my code I'm using a qTextBrowser for showing some image sored on the HD.
    My code works correctly.

    But there's no way to locate the plugin: qjpeg4

    In the main function I've added this code:

    Qt Code:
    1. qApp->addLibraryPath( qApp->applicationDirPath() ) ;
    To copy to clipboard, switch view to plain text mode 

    To set a search path for the plugins, but it doesn't work.
    Clearly I've copied the qjpeg4.dll to the app directory.

    Where's the problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qtextbrowser and imageformats plugins

    If you are in a debug build, then the debug version (with 'd' in the end) is used.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtextbrowser and imageformats plugins

    Quote Originally Posted by high_flyer View Post
    If you are in a debug build, then the debug version (with 'd' in the end) is used.
    I'm in the release build and I'm testing the installer on a virtual machine.

    Do you mind that for the debug build we need to copy the qjpeg4d.dll and for the release we need the qjpeg4.dll (without 'd')?

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: qtextbrowser and imageformats plugins

    Yes - release libs for release, debug libs for debug.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. The following user says thank you to high_flyer for this useful post:

    bred (21st December 2010)

  6. #5
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtextbrowser and imageformats plugins

    Quote Originally Posted by high_flyer View Post
    Yes - release libs for release, debug libs for debug.
    Sorry but it doesn't work.
    I've copied everything in the app directory without any result.

  7. #6
    Join Date
    Sep 2010
    Posts
    45
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qtextbrowser and imageformats plugins

    fixed
    tnx.

Similar Threads

  1. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 01:40
  2. QTextBrowser and img...
    By mirag in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2010, 08:06
  3. imageformats plugins
    By ht1 in forum Installation and Deployment
    Replies: 23
    Last Post: 10th January 2008, 19:18
  4. Replies: 2
    Last Post: 5th November 2007, 21:47
  5. Use CSS in QTextBrowser
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2006, 18:25

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.