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. QImage delete
Qt 6.11 is out! See what's new in the release blog

QImage delete

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • K Offline
    K Offline
    klynxe
    wrote on last edited by
    #1

    When I creat
    QImage *img = new QImage()
    How I mast delete it?
    It QObject heir, but it haven't a parent?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      with
      delete img;
      But are you sure you must new it in first place ?
      Most that take image will make copy.

      1 Reply Last reply
      3
      • K Offline
        K Offline
        klynxe
        wrote on last edited by
        #3

        Thank.
        Need)

        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