View Full Version : About QPixmap.save()

22nd November 2007, 10:33

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:


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?

22nd November 2007, 10:51
Maybe you forgot to copy the jpeg plugin (%QTDIR%\plugins\imageformats\qjpeg4.dll on windows).

22nd November 2007, 10:55
http://www.qtcentre.org/forum/faq.php?faq=qt_general_category#faq_qt_missing_ima ges

23rd November 2007, 02:26
Thanks very much!

the program is solved by add the the plugin!