mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #194] Support for 'default' properties? #127
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#127
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 @DeanThomas1983 on GitHub (Apr 22, 2020).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/194
Hi, I've been watching this project for quite a while and it looks like a great solution to cross platform GUIs for C#. One thing I'm particulary interested in is being able to create a generic QML documents for use with C++, Python (PySide2), and C# models.
One thing I've not been able to work out so far with qml.net is if there is support for defining a 'default' property in a C# model. In C++ this would be achieved using:
Q_CLASSINFO("DefaultProperty", "content")Is there any way to do this currently in qml.net? I'd guess you could use an attribute to define a default property, but wasn't able to see anything within the sources. This seems like a similar open issue: https://github.com/qmlnet/qmlnet/issues/84
If it isn't currently possible, I'd be interested in giving it a go.
@pauldotknopf commented on GitHub (Apr 22, 2020):
That isn't currently supported.
How would it look? Something like this?
@DeanThomas1983 commented on GitHub (Apr 22, 2020):
Yeah, that was the way I was thinking it could work. I'll look into pulling the code to see if I can work out how it would be implemented.