Integrating a Qt Widget in a .NET Application (WPF)

I have a working Qt widget that I want to show in a .NET application. The application uses WPF, and I want to embed this widget in the user interface.

What is the recommended way to embed a Qt widget in a WPF application? should I use C ++ / CLI and pass HWND to WPF or just use ActiveQt? I am worried about the Qt event mechanism since no one will call QApplication :: exec ()

+5
source share
2 answers

What you need to do is use QAxServer to turn your widget into a COM object:

http://developer.qt.nokia.com/doc/qt-4.8/activeqt-server.html

COM. . (Qt, COM, WPF).

:

http://developer.qt.nokia.com/doc/qt-4.8/qaxbindable.html

+1

ActiveQt?! ...

. , Qt (QApplication :: exec()) , PInvoke, QWidgets (QWidget:: getDC() ).

, Qt, COM WPF - ^^

0

All Articles