Solved Thread interruption from QML
-
how can I request Thread interruption from the QML side to a QThread running
quit() does not work for me
terminate() destroys the thread right away which causes some errors in an API I'm using to control some hardware in the thread
I want to properly close and destroy the device I'm using onInterruptionRequested and then kill the thread
I want to do so from the QML side, what options do I have ?
-
as a workaround for now I added a slot in my thread to do that for me using C++ and called it using QML
if there's a better way to do it please do tell! -
as a workaround for now I added a slot in my thread to do that for me using C++ and called it using QML
if there's a better way to do it please do tell!