mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #129] How to access QML object in .NET? #77
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#77
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 @vadi2 on GitHub (Apr 26, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/129
I'd like to change the label of a Groupbox in QML using .NET - what is the right way to do this? I see that https://github.com/qmlnet/qmlnet/pull/122 has went in recently but not sure if it's related / how to use it.
@pauldotknopf commented on GitHub (Apr 26, 2019):
The issue you referenced is unrelated.
You'd want to do something like this:
@vadi2 commented on GitHub (May 1, 2019):
Thanks, that works! And... simple question, how can I work with this class from within .NET? I need an object to reference. I looked at the qml-examples but could not find a solution.
@vadi2 commented on GitHub (May 1, 2019):
I see from the docs that
RegisterType()instantiates it, so I guess I need some way to get a reference to that.@vadi2 commented on GitHub (May 4, 2019):
Got it sorted! Using it from the same class seems to be fine.