I manually twiddle the memory returned by bits(), and i want the cacheKey to be 
invaliated, so it knows the image cached on the video card is stale. I want to 
mix QPainter calls with my manual bit-twiddles. There doesn't seem to be a way 
to do this.

I have way too much legacy code that does manual bit twiddling and buffer 
iteration for graphics ops, so it's not an option to just rewrite everything to 
"use QPainter calls only" on my buffers.

I saw this post:
https://stackoverflow.com/questions/55869926/qt-how-to-make-qimage-aware-of-updated-memory-buffer

but the solution offered seems like a hack, and could be a performance problem 
too since i think it will copy the bits from the mem buffer back to the video 
card every time?

Is there or will there be a sanctioned method for this?

Feel free to reply on the web forum here: 

https://forum.qt.io/topic/158492/how-to-make-qimage-aware-of-updated-memory-buffer

-davec
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to