Embed PyQt in C++/C



  • Hi, I have written a PyQT application in PyQt5. I now need to embed that in a C/C++ application. I see how to embed Python in C/C++ but I do not know how I can make sure the PyQt5 widgets are also available when run inside a C/C++.

    Some of the PyQt5 widgets I have used:
    from PyQt5.QtWidgets import QApplication, QFrame, QGridLayout, QHBoxLayout, QPushButton, QSizePolicy, QSpacerItem,QToolButton, QVBoxLayout, QWidget, QTextEdit

    How do I make sure these PyQt5 objects are there inside C/C++ when I embed?
    Any help much appreciated. Thanks!



  • Have a look at PythonQT


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.