danilodsp
16th September 2011, 16:03
I do not understand this problem.
I normally use a QImage, but now this happening a problem that I can not see.
In my .h:
QImage *mascara; // Máscara para filtro
In my .cpp:
mascara = new QImage(2,2,QImage::Format_Indexed8);
mascara->setPixel(0,0,5);
mascara->setPixel(0,1,5);
mascara->setPixel(1,0,5);
mascara->setPixel(1,1,5);
QString test;
test.setNum(mascara->pixelIndex(0,0));
ui->console->appendPlainText(test);
I do not see the pixel that I placed. In test no have the value 5.
I normally use a QImage, but now this happening a problem that I can not see.
In my .h:
QImage *mascara; // Máscara para filtro
In my .cpp:
mascara = new QImage(2,2,QImage::Format_Indexed8);
mascara->setPixel(0,0,5);
mascara->setPixel(0,1,5);
mascara->setPixel(1,0,5);
mascara->setPixel(1,1,5);
QString test;
test.setNum(mascara->pixelIndex(0,0));
ui->console->appendPlainText(test);
I do not see the pixel that I placed. In test no have the value 5.