@SGaist Hello,
Be patient and remember that I am self-taught and that I am only using qt/c++/qml/qwebengine in one project, therefore with little possibility of professional growth in this area.
The signal is connect into QWebChannel
window.onload = function () {
new QWebChannel(qt.webChannelTransport, function (channel) {
webobj = channel.objects.wiseMan;
}
}
I couldn't figure out how to get a method or signal to run in a new threads.
I tried this way, where EngineIndexHtml is class which contains the declare of signal
EngineIndexHtml* workerEngineIndexHtml;
QThread workerThreadEngineIndexHtml;
workerThreadEngineIndexHtml.moveToThread(&workerThreadEngineIndexHtml);
connect(workerEngineIndexHtml, &EngineIndexHtml::elabSignal, this, &EngineIndexHtml::elabSignal);
// Starting the worker thread
workerThreadEngineIndexHtml.start();
emit elabSignal(jsonObjectDataRowLauncher);
But i have this wrong and I didn't know how to solve it, I probably misunderstood how to run a new thread
QThread: Destroyed while thread is still running