You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an app that receives data from somewhere (from where is not important right now) 30 times per second. I want to turn that data into an image, but the data it recieves is not png or something like that, it's all of the pixels individually. How could I update that image, pixel by pixel, 30 times a second? Or what else should I use to achieve that?
Currently I create a QImage which is in Indexed8 mode and fill it up with the pixels then I convert it to a QPixmap and assign that to a QLabel
With this I can update the image every 5-6 seconds, so it's too slow.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to create an app that receives data from somewhere (from where is not important right now) 30 times per second. I want to turn that data into an image, but the data it recieves is not png or something like that, it's all of the pixels individually. How could I update that image, pixel by pixel, 30 times a second? Or what else should I use to achieve that?
Currently I create a
QImage
which is inIndexed8
mode and fill it up with the pixels then I convert it to aQPixmap
and assign that to aQLabel
With this I can update the image every 5-6 seconds, so it's too slow.
Beta Was this translation helpful? Give feedback.
All reactions