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

QtROExternalIoDevice never connects the external QIODevice's "disconnected()" signal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.4
    • Remote Objects
    • None

      In Qt 6.2.4 (and possibly earlier versions) when using an external QIODevice, the QtROExternalIoDevice wrapper should connect the QIODevice's disconnected() signal (if it exists) to its own signal. This is vital for connection management on the server side (and, as a side note, the need for a disconnected() signal in the external QIODevice-derived class should be clearly documented).

      But the syntax used in the code to search for the signal (meta->indexOfSignal(SIGNAL(disconnected())))) is inadequate and always returns -1: SIGNAL prepends "2" in front of the signal signature, which makes indexOfSignal fail.

      I believe the attached patch (against 6.2.4) should fix it.

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

            bstottle Brett Stottlemyer
            iruau iruau logic
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes