Results 1 to 6 of 6

Thread: loadFromData with Pixmap probelm

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: loadFromData with Pixmpa probelm

    Quote Originally Posted by December View Post
    Hmm, going to have to figure out how to convert it of its a jpeg then I guess. Can anyone point me to some code to do JPG -> PNG conversion?
    AFAIR the JPEG support is compiled as plugin on windows. So first check if you have the QJPEG plugin compiled. If yes, then it's just a matter of placing it imageformats subdirectory in the directory where the executable is. If not, you will have to reconfigure and recompile Qt (you can do it also to compile QJPEG into Qt).

  2. #2
    Join Date
    Sep 2006
    Posts
    68
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: loadFromData with Pixmpa probelm

    I just tried this:

    configure -qt-libjpeg -static
    make subsrc

    But JPG is still not showing up.

    Also tried moving qjpeg4.dll into the same folder as the exe, still no JPG support.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: loadFromData with Pixmpa probelm

    Quote Originally Posted by December View Post
    configure -qt-libjpeg -static
    Hmm... I've just checked configure's options and it seems that you can't compile QJPEG into Qt anymore.

    Quote Originally Posted by December View Post
    Also tried moving qjpeg4.dll into the same folder as the exe, still no JPG support.
    Create "imageformats" subdirectory in that folder and move qjpeg4.dll there.

    Iff you use static Qt, you will have to add "QTPLUGIN += qjpeg" to your .pro file and "Q_IMPORT_PLUGIN(qjpeg)" before main().

  4. The following user says thank you to jacek for this useful post:

    December (27th July 2008)

Similar Threads

  1. finding maximum scaling of a pixmap
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 31st March 2008, 14:32
  2. empty pixmap as a QLabel
    By tommy in forum Qt Programming
    Replies: 16
    Last Post: 11th December 2007, 21:15

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.