Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.7.2
-
None
Description
Assigning list<string> to list<var> silently fails, and turns said list<var> into an empty array.
In practice, this rules our using a list<> type for a property that reads from a model which (depending on a platform) may return list of strings or list of integers (typical situation with X11 vs. Wayland identifiers, for example); and I have to resort to this:
property /*list<var>*/ var virtualDesktops: model.VirtualDesktops
Expected behavior
Automatically convert the list<string> value, or list of any other primitive or object type for that matter.
Actual behavior
Silent(!) fail resulting in an empty list instead of a properly populated target.
Attachments
Issue Links
- duplicates
-
QTBUG-126398 Decide whether QV4::Sequence should be implicitly convertable to QStringList
- Closed