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

IPC between Python backend to a QML GUI



  • Hi,
    I am using Qt Creator to create a gui that shows ambient air temperature and speed of a car to a touchscreen working on Raspberry Pi 4. The python backend connects to the vehicle and gets the data successfuly, and keeps them in string variables. How can I use Qt's interprocess communication methods to change the text on the gui when a the data in python is updated? Can you provide a simple code or a tutorial on how to do this?
    Thank You


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since you already are working with Python, why note use PySide2 or 6 to do the GUI part ?



  • Hi, I use swipeview and drawer from QTQuickControls 2 which was not available on those. Is there a work around to use these directly on python?


  • Lifetime Qt Champion

    What exact issue did you got ?



  • On the Application window, the value that was passed from the python is not shown. Instead I see only "..." maybe something else is writing after that but cannot read it exactly. The qml part cannot load the python variable is what I am guessing but I could not manage to get it working


  • Lifetime Qt Champion

    Something is not clear: are you writing your application in Python ?


Log in to reply