Hello again.
I have problems with saving qImage to jpg.
On the very begining i was trying to use QPixmap::save() like this:
Qt Code:
  1. QString saveFile=QFileDialog::getSaveFileName(this,tr("save"),QDir::homePath());
  2. if(!saveFile.isEmpty())
  3. if(!tlo->save(saveFile,".JPG",100));
To copy to clipboard, switch view to plain text mode 
but it didn't work(no errors, just was not saving file), so i have tried qimagewriter and... on the one computer it's working on the other not... the code is:
Qt Code:
  1. QString saveFile=QFileDialog::getSaveFileName(this,tr("save"),QDir::homePath());
  2. if(!saveFile.isEmpty()){
  3. QImageWriter writer(saveFile);
  4. writer.write(*tlo);
  5. if(writer.canWrite())
  6. qDebug("i can write");
  7. else
  8. qDebug("i can't write");
  9. qDebug()<< writer.errorString();
  10. }
To copy to clipboard, switch view to plain text mode 

it shows me "i can write" co there is no problems with opening file to write and no problems with qimage... the error line is "unknown problem"
any ideas about the solution? any ideas why save() didn't work? i really will appreciate help.
thank