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:
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.
<!DOCTYPE RCC><RCC version="1.0">
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 error
si = new QSystemDeviceInfo(this);
E:\SYMBIAN\moje\QtQuick2-build-simulator\..\QtQuick2\mySysInfo.cpp:8: błąd:'QSystemDeviceInfo' was not declared in this scope