Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Embed a QWidget inside a non-Qt window



  • Hello.

    I hope this is not an FAQ, I swear that I looked :)

    Is it possible to embed in any way a QWidget inside a non-Qt window? This ideally would work on both Mac OS and Windows.

    Thanks in advance.



  • Have a look at the "Qt/MFC Migration Framework":http://qt.nokia.com/products/qt-addons/solutions-archive/. Unfortunately it is for Windows only.

    [edit]
    Just to explain how this will help you, look at this explanation from the documentation...

    The QWinWidget class is a Qt widget that can be child of a native Win32 widget.

    The QWinWidget class is the bridge between an existing application user interface developed using native Win32 APIs or toolkits like MFC, and Qt based GUI elements.



  • Thank you, unfortunately this will not work, if I find a solution it must work on Mac OS too. In fact Mac OS is my primary development platform.

    Thanks anyway.


Log in to reply