Important: Please read the Qt Code of Conduct -

Create Thread in QML

  • Hello,
    I have function and i using this function when starting program in QT like this -> CreateThread(0, 0, (LPTHREAD_START_ROUTINE)getdata, 0, 0, 0);

    How can i use this create thread in QML ? how can i call this function in qml like create thread ?
    Thank you

  • Lifetime Qt Champion


    You don't from QML directly but from the C++ side. Then you integrate that with your QtQuick interface.

Log in to reply