I just solved it using a similar technique, but thanks for the reply!!!
this->render(&pixmap);
QRgb pix = img.pixel(10,10);
std::cout << "Red : " << qRed(pix) << std::endl;
std::cout << "Green : " << qGreen(pix) << std::endl;
std::cout << "Blue : " << qBlue(pix) << std::endl;
QPixmap pixmap(this->size());
this->render(&pixmap);
QImage img(pixmap.toImage());
QRgb pix = img.pixel(10,10);
std::cout << "Red : " << qRed(pix) << std::endl;
std::cout << "Green : " << qGreen(pix) << std::endl;
std::cout << "Blue : " << qBlue(pix) << std::endl;
To copy to clipboard, switch view to plain text mode
Bookmarks