Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6781

QObject::disconnect() disconnects all connected slots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.2
    • 4.6.0
    • Core: Object Model
    • None
    • 5f92bc9dd9f05f4824711b03406bdbe222ff73e9

      QObject::disconnect(sender, signal, reciever, method) disconnects all connections, not just the first one. The attached example should print "myslot" three times, instead of just twice.

      Some way to just disconnectOne() is essential for qml.

        1. main.cpp
          0.5 kB
          Aaron Kennedy
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aakenned Aaron Kennedy
            aakenned Aaron Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes