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

QML WebSocket active property not updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Component/s: WebSockets
    • Labels:
      None
    • Platform/s:
      All

      Description

      The `active` property is used to open and close connections on QML WebSockets. However this property is not updated when the socket is closed. Therefore mapping a UI button to toggle active requires an additional click.

      The active property should be updated on disconnect. (If it were me I would get rid of active and just have a connectToHost() method and an disconnectFromHost method like the other sockets. But if that is not the case, then active property need to be maintained according to the socket state.

        Attachments

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

          Activity

            People

            Assignee:
            kurt.pattyn Kurt Pattyn
            Reporter:
            jasonapk Jason Hihn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes