PDA

View Full Version : how to use Qimage class



doss
17th April 2009, 11:40
hi,

i want to use the function of QImage (bool Qimage save()). wat i have to do ?
First i have to declare this function as public in a class (available in header file) or
i have to use this function directly in cpp file to save images as JPG format in mainwindow?? like this


bool Qimage::save(filename, jpg,0)
{
if(isNull())
{
return false;
}
}

if it is worng , can u plz give me correct to implement the save function.

calhal
17th April 2009, 15:38
In my opinion the first thing you should do is to read about C++ and next read Qt's documentation. And then ask questions here.

Have a nice day.