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 of
setDatathat take a
void*data pointer. The replacement is
setDatawith the same signature, except it now takes
const 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.