c++ - QImage to QPixmap is expensive -


for application, wanted show images continuously. found took me around 30ms convert qimage qpixmap. affected frame rate, want find more effitive way show image qtgui. method can use? me?

if read documentation well, explained.

  • qimage design io handling, , direct pixel access , manipulation
  • qpixmap designed , optimized showing images on screen

if load image , show (without manipulation image), load image , cache qpixmap.

but if manipulation, nothing can do. maybe can try paint image directly qpainter of widget. don't know if faster convert image pixmap , paint widget.


Comments

Popular posts from this blog

c++ - What's the differece between of link to a dynamic file and as a input object? -

javascript - Feed FileReader from server side files -

Android Unit Testing / Mockito: android.location.Location not mocked -