QML is not really designed with the intention of working within more than one thread. The origional intention was that any threading should be handled by the layer existing in C++. However, if you do really need acces to threads to perform things like calculations, and you are unable/unwilling to write code at the C++ level, there is the WorkerScript QML element that may be able to provide the funcionality you want.
https://qt-project.org/doc/qt-5.0/qtqml/qml-qtquick2-workerscript.html
Its worth note that depending on what you are trying to do this may or may not be entirely appropriate to use.
WorkerScript, but it would be an advanced feature; not something for one who's "taking his first steps" in QML.