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

QState addTransition ownership

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 769 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.
  • A Offline
    A Offline
    AccWhid
    wrote on last edited by
    #1

    The documentation states that calling addTransition with an AbstractTransition will change ownership of that transition.

    When calling addTransition(const QObject *sender, const char *signal, QAbstractState *target) it returns a QSignalTransition.

    Is the QState the owner of the QSignalTransition or do we need to mange the QSignalTransition on our own?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! With ...

      auto transition = state.addTransition(...);
      

      ... state is transition's parent.

      1 Reply Last reply
      2

      • Login

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