Unsolved QOpenGLTexture::setData deprecated but replaced with what?
-
I'm getting warnings that QOpenGLTexture::setData is deprecated but I can't find any documentation that specifies what is was/is replaced with. What's up with that?
-
Yeah, the change is a bit hard to spot at first glance.
Deprecated are the versions ofsetData
that take avoid*
data pointer. The replacement issetData
with the same signature, except it now takesconst void*
data pointer, so a simple cast should get rid of that warning for you. -
Worked like a charm. Thanks for the response. Saved me some time.