mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #119] Auto generating interop C++/C# code. #71
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#71
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 @pauldotknopf on GitHub (Apr 14, 2019).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/119
Right now, it is cumbersome to flesh out the boilerplate needed for some simple getters/setters.
I'd like to have another console project where we can define the interop API with C# models, and then generate the C++/C# to go back and forth.
SWIG does someting similar, but I'd prefer a home-grown approach that uses
QSharedPointerand special Qt meta-system support.@pauldotknopf commented on GitHub (Jul 18, 2019):
Note, this is for the internal interop only, not the classes defined in your implementation.
@vadi2 commented on GitHub (Jul 18, 2019):
Would this mean that any Qt class would be available for use, instead of only ones marked as
Q_INVOKABLEright now?@pauldotknopf commented on GitHub (Jul 18, 2019):
No, unfortunately. The properties/methods that are dynamically invokable must be made visible to the meta object system. This is only done via Q_PROPERTY and Q_INVOKABLE (or slots).