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

[Reg 5.4 -> 5.5] quint8 interpreted as QString in qml

    XMLWordPrintable

Details

    • 35597f301480ffc59f598be4de2c2074543725be

    Description

      I've got some C++ code which handles UDP-communication (incoming only). Using Q_PROPERTY I make the UDP stream available for my QML-code. I've been using this setup since Qt 5.1 and it's always been working.

      However, since Qt 5.5.1 (and perhaps 5.5, I have not been able to test this) a Q_PROPERTY of type quint8 is no longer interpreted as an int in QML, instead it's referred as a QString.

      Is this intentional, or is it a bug? My workaround for the moment is to use "charCodeAt(0)" (udp.mySignal.charCodeAt(0)).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Cidde Christer Lundevall
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: