Hi everyone!
I have just writen my own class in c++ and added it as a type to use with QML - just like in example in topic.
All seems to be ok except nothing is working![]()
I get an error:Path to mySysInfo.qml is in resource editor set to:Code:QDeclarativeComponent: Component is not ready (qrc:mySysInfo.qml: File not found)Remark: mySysInfo.qml is not a main project file but I want to use it as a component in main,qml.Code:<!DOCTYPE RCC><RCC version="1.0"> <qresource> <file>qml/QtQuick2/mySysInfo.qml</file> </qresource> </RCC>
What am I doing wrong?
The second question is I included into mySysInfo.h headers <QSystemInfo> and <QSystemDeviceInfo>, CONFIG += mobility
MOBILITY += systeminfo in application .pro file but when I try to write something like this
I get build errorCode:QSystemDeviceInfo *si; si = new QSystemDeviceInfo(this);Why?Code:E:\SYMBIAN\moje\QtQuick2-build-simulator\..\QtQuick2\mySysInfo.cpp:8: błąd:'QSystemDeviceInfo' was not declared in this scope

I change it tomorrow and try again


