I think direct painting will be the most performant, so not with QGraphicsView.
I don't know though, if 30fps can be reached ,probably, but it needs testing.
To test it quick, you can make a smal app with a widget, and in the painEvent() do something like:
QImage image
(pData, iWidth, iHeight,
QImage::Format_ARGB32);
panter.drawImage(rectImage,image,rectImage); //In this case make the widget as large as the Image 1:1
QPainter painter(this);
QImage image(pData, iWidth, iHeight, QImage::Format_ARGB32);
panter.drawImage(rectImage,image,rectImage); //In this case make the widget as large as the Image 1:1
To copy to clipboard, switch view to plain text mode
and time it.
See if you get 30fps.
Added after 4 minutes:
It might be a good foundation for my app, isn't it ?
In your case no, since you are not doing anything with the data you get except show it.
If you need to manipulate the data, then, threads MIGHT be of benefit.
Bookmarks