can we integrate QML and JavaScript code in the same .qml file as we do it in HTML JS
For example:
//test.qml
import QtQuick 1.0
Item
{
function pollLoginStatus()
{
var receiveReq = new XMLHttpRequest();
}
....
QML Code
I know that we have to use JavaScript using.
import "jsCode.js" as jsCode
Item
{
jsCode.jsfunction();
Is there anyother way of doing it, I want to integrate QML and JavaScript in the same file.
Thanks.