Qt Group is transferring ahead with Qt/.NET, a proposed toolkit for interoperability between C++ and Microsoft’s .NET software program growth platform.
The toolkit features a Qt-based customized native host for managing assemblies, together with a native-to-managed adapter module offering interoperability providers resembling occasion technique invocation, occasion notification, and object-lifecycle administration, in accordance with an August 30 weblog submit. Qt/.NET’s proposed plan for Qt and .NET interoperability contains implementing C# interfaces in C++ and defining .NET sorts that reach Qt lessons. Â
The toolkit permits native object encapsulation. By extending the QDotNETInterface
, C++ objects can turn out to be accessible to .NETÂ as implementations of C# interfaces, QT stated. The Qt/.NET adapter achieves this by providing a managed object to function a proxy of the native implementation. This proxy is created by the QDotNETInterface
constructor and incorporates a listing of callbacks offered as interface member implementations. From a managed code perspective, the proxy implements the interface and members which are invoked by different .NET objects. Additionally, Qt lessons will be prolonged in .NET.