mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #151] Set multi-dimensional int Arrays from inside .NET #93
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @geigertom on GitHub (Jul 4, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/151
I want to draw shapes on QML
Canvaselements that I calculate in .NET.In QML, I can do the following:
I would like to be able to set the multi-dimensional array
property var positionsfrom inside .NET. What would be the best approach? Do we need to extendNetVariantfor another type, or is this already implemented?Thanks
Tom
@geigertom commented on GitHub (Jul 5, 2019):
I did some testing and debugging and as it turns out, this already works:
.NET property:
QML:
You need to know the number of dimensions for iterating beforehand.