Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLTexture::setData deprecated but replaced with what?
Forum Updated to NodeBB v4.3 + New Features

QOpenGLTexture::setData deprecated but replaced with what?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    drhalftone
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Yeah, the change is a bit hard to spot at first glance.
      Deprecated are the versions of setData that take a void* data pointer. The replacement is setData with the same signature, except it now takes const void* data pointer, so a simple cast should get rid of that warning for you.

      1 Reply Last reply
      1
      • D Offline
        D Offline
        drhalftone
        wrote on last edited by
        #3

        Worked like a charm. Thanks for the response. Saved me some time.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved