Nominate our 2022 Qt Champions!

Can a C++ and a python app could be simultaneously be made in the same GUI?

  • I am currently developing a GUI where I have made my apps in C++, now I have to interface a humidity sensor whose codes are only available in python, so can I make a python app such that it could read the sensor data in the same GUI...???

  • Lifetime Qt Champion


    Do you mean embed a python interpreter in your C++ application to read your sensor ?

  • @sush what if the Python app "publish" the values it reads from the sensor by some communication mechanism and you poll those values from the C++ displaying the GUI?

    Could you provide more details about what sensor you're using, and how the Python app is interfacing with the sensor? I bet that's a very likley chance a C equivalent program can be written instead...

Log in to reply