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

QObject::disconnect() disconnects all connected slots

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes