[solved] problems with QLabel pixmap
-
I want to save the image in the pixmap of a QLabel (label name)
I used this code:
ui-> label-> pixmap () -> save ("/ tmp / test", "GIF", -1);
but it does not work, does not generate image ...
I am using linux ubuntu, with Qt 5.2 verção
(5.0)Can anyone help me or show me an example of how to do this?
-
Qt does not support GIF writing/saving,
check this link for supported formats
"http://qt-project.org/doc/qt-5.1/qtgui/qpixmap.html#reading-and-writing-image-files
":http://qt-project.org/doc/qt-5.1/qtgui/qpixmap.html#reading-and-writing-image-files -
uhahuahu
thank you very much
worked perfectly using JPG