|
|
RAW RGB isnt supported by QImage::fromData...
here's some code:
tvc->openDevice();
if ( tvc->readFrame() ) {
QImage img=QImage::fromData(tvc->frame(),sizeof(tvc->frame()));
tvc->closeDevice();
gscene->addPixmap(QPixmap::fromImage(img));
}
here is some debugging info:
grabbing frame: 924x576 (2128896 bytes, 3696 bytes per line, 4 bytes
per px)
QPixmap::convertFromImage: Cannot convert a null image
gscene is QGraphicsScene
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|