Hello,
I seem to be having a problem trying to save an image to a file.
Here's my save method:
def fileSave(self):
'''Method to handle the saving to a file
'''
if (not self.pixmapObj.isNull()):
self.pixmapObj.save(QString("dataf1.jpg"), "JPEG", -1)
the image is contained in the pixmapObj object which is an instance of
a subclass of the QPixmap class. The save to a file seems to work, but
the following three lines are written to my screen:
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
Does anyone know what I need to do in order to correctly save an image
to a file (I thought, according to the Qt docs that this should work).
I'd be grateful for any help.
Best regards, adil
|