[Interest] How to make QImage aware of updated memory buffer?

Thiago Macieira thiago.macieira at intel.com
Sun Sep 1 07:16:55 CEST 2024


On Saturday 31 August 2024 15:33:39 GMT-7 David M. Cotter wrote:
> 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.

The cache key is invalidated the moment you call bits()

If it stays the same, it's because it was not cached by anything.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240831/6b2ac292/attachment.bin>


More information about the Interest mailing list