aboutsummaryrefslogtreecommitdiffstats
path: root/include/qdotnetobject.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix bugs in generation of field membersMiguel Costa2025-10-151-2/+2
| | | | | Change-Id: Ibfa97d7f3deb887f4bfb0f64e4529f59607944ce Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix event handler not releasedMiguel Costa2025-10-081-3/+1
| | | | | Change-Id: I8806e0a1b7548ab5979cfbbd568f3cccf71ead5a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add Q_DOTNET_HANDLER helper macroMiguel Costa2025-08-081-0/+39
| | | | | | | | | | | | | | | | | | | Expands to a declaration of an event handler member variable. Example: struct Foo { Q_DOTNET_EVENT_HANDLER(ValueChanged, Foo) *handler = nullptr; } ... void Foo::ValueChanged::handleEvent(...) { ... } Change-Id: I02cb446cc67e446886f4c54e7e72ccc3f4484f54 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add access to .NET constants and fieldsMiguel Costa2025-07-011-0/+43
| | | | | | Task-number: QTBUG-134961 Change-Id: I447a125faa5e40fea07bd9957a4b80192d582f96 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* RefactorMiguel Costa2025-06-251-34/+31
| | | | | | | | | | | | | | | | Includes: * Implement QDotNetNativeInterface: specialization of QDotNetInterface that wraps a pointer to native data. * Implement IQVariant: QDotNetNativeInterface that wraps a QVariant. * Implement IQModelIndex interface: QDotNetNativeInterface that wraps a QModelIndex. * Implement QDotNetAbstractListModel base class: allows extending QAbstractListModel in C#. * Add class QDotNetDelegate * Remove old examples Change-Id: I2eb21df29e1cf9379e14a64d5174eb934b5bf18a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add wrapper facilities for .NET typesMiguel Costa2023-06-121-0/+321
Auxiliary types for writing C++ wrapper classes to encapsulate the low-level interoperability with managed types. In particular, the QDotNetObject C++ class can be extended to implement unmanaged proxies for .NET types, allowing native code to seamlessly interact through a C++ interface with managed code. Extending both QDotNetObject and QObject in the same wrapper class is the basis for a close, seamless integration between Qt applications and .NET code. Change-Id: Ib6d9472ff113868551ead1375764db7dd79643ea Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>