mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #72] Removal of the private headers. #45
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#45
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 (Sep 24, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/72
In order to make our compiled lib more portable, we need to not depend on any
*-privateheaders from QML.We are currently using
core-private. We use it to generate dynamicQObjectdefinitions with custom methods/properties/signals.To get around this, we'd need to generate C++ classes from C# classes. The generated C++ will contain all the code needed to manipulate/interact with the underlying .NET type.
Also, with the generated C++ classes, we'd have support for intellisense in Qt Creator.
Note, this approach wouldn't work with the
Qml.Net.*BinariesNuGet packages. You'd have to manually compile thelibQmlNet.soshim for your platform of your choice with the generated C++ classes baked in.There should also be a compile-time option to enable "strict mode" which will throw exceptions if you attempt to pass a .NET object to QML that doesn't have a matching generated C++ type.