Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    TextField

    QML and Qt Quick
    3
    5
    2285
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Q
      qtNiks last edited by

      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 ?

      1 Reply Last reply Reply Quote 0
      • D
        dmcr last edited by

        Did you put @import QtQuick 1.0@ as a header in your QML file ?

        dmcr

        1 Reply Last reply Reply Quote 0
        • R
          raaghuu last edited by

          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)
          @

          1 Reply Last reply Reply Quote 0
          • Q
            qtNiks last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • R
              raaghuu last edited by

              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)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post