mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #221] Passing C# List<> from ListModel to another C# class through QML_JS throws exception under .NetFramework #139
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#139
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 @FieryRider on GitHub (Aug 26, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/221
UPDATE Almost a year later I reran my test project with new Visual studio and the error has more info now (updated StackTrace) (I also updated QML.NET but even with
0.11.0the exception has more info)Summary: Passing a
List<string>(or any other type) that lives insideC# classthat is amodelfor a QMLListViewto a function in anotherC# classthrows'System.security.VerificationException' in Qml.Net.dll.Qml.Net Version: 0.11.0
Basically I have a
C# classthat is amodel(withid: simpleList) for aListViewthat hasList<string> stringsinside. I am trying to pass theList<string> stringsto a function (TestFunction(List<string> strings)) in anotherC# classcalledMainController(that hasid: mainControllerinside QML) through QML like this:mainController.testFunction(simpleList.strings). This throws throws'System.security.VerificationException' in Qml.Net.dllunder.NetFramework.StackTrace:
It works fine under
.NetCore.Here is a repro repo.