I am a beginer with Qt/QML. I am trying to use TextField (http://doc.qt.nokia.com/qt-components-symbian/qml-textfield.html#details) component in my QML file.
I have Qt Creator 2.2.0 Based on Qt 4.7.4 (32 bit) installed and when i run the application
its gives the following error:
"TextField is not a type "
Can somebody help me ?
Did you put @import QtQuick 1.0@ as a header in your QML file ?
TextField is a QtComponent element... You need to either install desktop components(you can search the link, but i, for reasons unknown, was unable to install it...so i used the second choice) or you can use the mobile components supplied with the SDK(meego, symbian, etc) as follows
import com.nokia.symbian 1.x //...x being 0 or1(or any other valid version)
@dmcr : yes, i did
import QtQuick 1.0
@raaghu : for some reasons i m not able to do import com.nokia.symbian 1.0/ 1.1 as well
then you might not have it installed... check if your 'imports' folder(its on the same level as <path-to-QtSDK>/bin) contains a folder named 'com'... if not then search your installation for it and copy it to 'imports'... i found it in the 'Simulator/Qt/mingw/imports/'(it can be installed from updater tool of Creator, if you don't have it)... OR you could just install Desktop-Components(if you are able to do it, do tell me how-to too)
P.S. if you do have 'com' in the 'imports' then instead of symbian, you might have something else(like meego or maemo or something like that)