Results 1 to 2 of 2

Thread: DLL, image plugins

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default DLL, image plugins

    I'm writing a Windows DLL that uses QT. So, I'm not writing an application, instead a .dll.

    I want to read a TIFF image, but, it seems that when my dll is deployed, I need to have the qtiff4.dll (a plugin) located
    somewhere.

    I tried calling QCoreApplication::setLibraryPaths() but that doesn't work (I'm not surprised, since my dll is of course not an app).

    So, I can successfully load the plugin with QPluginLoader, and successfully cast that to a QImageIOPlugin*.
    So, I have a path the the tiff file, how do I assemble all these parts to read my tiff file into a QImage?

    THanks

    Rick

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: DLL, image plugins

    You need to have the 'imageformats' folder in the same directory as your application.
    Copy it there , run ur app, and see if it works

Similar Threads

  1. Program not linking with static image plugins
    By andyp in forum Qt Programming
    Replies: 7
    Last Post: 8th December 2009, 10:15
  2. Replies: 6
    Last Post: 21st September 2009, 10:55
  3. hide image,once moused moved from image
    By yuvaraj.yadav in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2009, 08:16
  4. Replies: 3
    Last Post: 14th March 2007, 08:09
  5. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 08:32

Tags for this Thread

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.