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

QML WebSocket active property not updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.14.1
    • WebSockets
    • None
    • All

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes