Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QtWheelEvent* in signal from handler: should I delete it?
Forum Updated to NodeBB v4.3 + New Features

QtWheelEvent* in signal from handler: should I delete it?

Scheduled Pinned Locked Moved Solved Game Development
2 Posts 2 Posters 521 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.
  • uaniU Offline
    uaniU Offline
    uani
    wrote on last edited by
    #1

    Hi,

    https://doc.qt.io/qt-6/qt3dinput-qmousehandler.html#wheel sends a Qt3DInput::QWheelEvent pointer.

    Some documentation of other signals, eg. QNetworkAccessManager::finished state I have to delete(Later) the received passed in pointer.

    Should I also delete (or ...Later?) the pointer passed into the wheel slot? The documentation of the signal doesn't state anything to this regard.

    jsulmJ 1 Reply Last reply
    0
    • uaniU uani

      Hi,

      https://doc.qt.io/qt-6/qt3dinput-qmousehandler.html#wheel sends a Qt3DInput::QWheelEvent pointer.

      Some documentation of other signals, eg. QNetworkAccessManager::finished state I have to delete(Later) the received passed in pointer.

      Should I also delete (or ...Later?) the pointer passed into the wheel slot? The documentation of the signal doesn't state anything to this regard.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @uani No, you do not have to delete the events - those are handled by Qt.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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