Results 1 to 4 of 4

Thread: QImage on windows

  1. #1

    Default QImage on windows

    Hi,

    I've got an Problem using QImage on Windows.
    I can't initialize a QImage Object, without being NULL. On my local workstation, it works.
    After giving the binary to some one else, with mingwm10.dll, QtCore4.dll and QtGui4.dll, the object is always NULL ...

    I've testen such a few options, like QImage::load(QIODevice*), QImage::load(QString), QImage::loadFromData(QByteArray*), QImage::QImage(String), QPixmap::toImage(). Nothing works. But a QFile:pen() returns true, so the permissions should not be the problem ... Any ideas?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QImage on windows

    Can you post some code?

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

    Default Re: QImage on windows

    You didn't copy the image plugins to the target machine, did you?

    You need to copy the contents of your plugins/imageformats directory under your Qt installation to the imageformats directory under the directory where the application binary is installed on the target machine.

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

    sabeesh (2nd January 2008)

  5. #4

    Default Re: QImage on windows

    Oh my man ... You are the best
    Nobody said, nobody knows ... Thanks, works fine!

Similar Threads

  1. Replies: 12
    Last Post: 7th September 2011, 16:37
  2. Replies: 10
    Last Post: 25th February 2007, 00:23
  3. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  4. Experience using KDevelop with Cygwin under windows
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 11th September 2006, 16:50
  5. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 17: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.