Results 1 to 4 of 4

Thread: About QPixmap.save()

  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    7

    Question About QPixmap.save()

    hello,

    I use a object of QPixmap to save a picture which is getted from opencv.In my computer the program is running well.
    But when I setup the program in another computer,the picture cann't be written in the file "1.jpg",but the Object of OPixmap can be shown in the window. What's the wrong I did?

    here is the part code:

    m_qImage.save(".\\1.jpg","JPG",-1);

    Here, m_qImage is a object of QPixmap.
    I don't know how to solve the program,It's a so easy code,I can't find some errors in this code.Can you help me?

  2. #2
    Join Date
    Nov 2007
    Posts
    89
    Thanked 21 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: About QPixmap.save()

    Maybe you forgot to copy the jpeg plugin (%QTDIR%\plugins\imageformats\qjpeg4.dll on windows).

  3. The following user says thank you to bender86 for this useful post:

    alphaboy (23rd November 2007)

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

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

    alphaboy (23rd November 2007)

  6. #4
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    7

    Talking Re: About QPixmap.save()

    Thanks very much!

    the program is solved by add the the plugin!

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.