You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a qtprotobuf-generated class instance that I'm passing up to QML land.
One of its members is a QtProtobuf::uint32List and I want to test whether that list contains a certain value. I've tried includes() (the javascript array way) and contains() (more of a Qt thing) but neither work. The error reads:
TypeError: Property 'contains' of object QVariant(QtProtobuf::uint32List) is not a function
Is it currently possible to perform this test in a javascript function, within QML?
The text was updated successfully, but these errors were encountered:
Recent master, but probably there is something that is specific for the message you check. So if you could give me a raw message structure I could dig further.
I have a
qtprotobuf
-generated class instance that I'm passing up to QML land.One of its members is a
QtProtobuf::uint32List
and I want to test whether that list contains a certain value. I've triedincludes()
(the javascript array way) andcontains()
(more of a Qt thing) but neither work. The error reads:Is it currently possible to perform this test in a javascript function, within QML?
The text was updated successfully, but these errors were encountered: