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. Question about QObject::disconnect
Forum Updated to NodeBB v4.3 + New Features

Question about QObject::disconnect

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 566 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.
  • J.HilkJ Online
    J.HilkJ Online
    J.Hilk
    Moderators
    wrote on last edited by
    #1

    Hi everyone,

    just a quick question about QObject::disconnect because I'm not sure how the behaviour will be.

    If I call disconnect on a QMetaObject::Connection is it fair to assume, that all queued up signals to that slot will be droped?


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    DiracsbracketD 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      Hi everyone,

      just a quick question about QObject::disconnect because I'm not sure how the behaviour will be.

      If I call disconnect on a QMetaObject::Connection is it fair to assume, that all queued up signals to that slot will be droped?

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by Diracsbracket
      #2

      @J.Hilk
      Hi.
      https://woboq.com/blog/how-qt-signals-slots-work-part3-queuedconnection.html
      It looks that signals that are validly received and queued will only be removed from the queue by being handled, which seems reasonable.

      1 Reply Last reply
      3

      • Login

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