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

QML WebSocketServer port property is of type quint16

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.1
    • 5.4.2
    • WebSockets
    • None
    • MacOSX 10.10.3, Qt 5.4.2
      Windows 7, Qt 5.5.0
      Gentoo GNU/Linux, Qt 5.5.0,
    • 0610115192f4a1e4d722330bf298ccd213ca3b5f

    Description

      The QML WebSocketServer port is os type quint16. QML does not know the type quint16. The result is

      >>Invalid property assignment: unsupported type "ushort"<<

      Sorry I do not have a dev env up an running. The fix should be to change the property declaration to an int

      >>Q_PROPERTY(quint16 port READ port WRITE setPort NOTIFY portChanged)<<

      And the resulting changes (e.g. setPort, port) maybe also with a range check.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            jryannel2 Juergen Bocklage-Ryannel (ghost) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes