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

QML WebSocket active property not updated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1
    • WebSockets
    • None
    • 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

            kurt.pattyn Kurt Pattyn
            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