[Interest] QQmlApplicationEngine's rootObject() returns 0 objects count when trying to import of JavaScript file from Remote Server

Alejandro Exojo suy at badopi.org
Thu Nov 13 18:16:16 CET 2014


El Thursday 13 November 2014, ashish dabhade escribió:
> import QtQuick 2.3
> import "http://192.168.1.2/sample.js" as Remote
> 
> Rectangle {
>     width: 100
>     height: 62
> 
>     MouseArea {
>         anchors.fill: parent
>         onClicked: Remote.myFunction()
>     }
> }
> 
> 
> but it crashed here. Following is the log:
> 
> Starting /home/ashish/Qt-Main/5.3/gcc/bin/qmlscene...
> 
> /home/ashish/Qt-Main/5.3/gcc/bin/qmlscene exited with code 255
> 
> Is it related to the first scenario ?

It might be. Is the objectCreated signal triggered? Is the sample.js properly 
accessible? We don't have access to your 192.168.1.2 to test.

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net



More information about the Interest mailing list