Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextField

TextField

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.9k Views 1 Watching
  • 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 Offline
    Q Offline
    qtNiks
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      dmcr
      wrote on last edited by
      #2

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

      dmcr

      1 Reply Last reply
      0
      • R Offline
        R Offline
        raaghuu
        wrote on last edited by
        #3

        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
        0
        • Q Offline
          Q Offline
          qtNiks
          wrote on last edited by
          #4

          @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
          0
          • R Offline
            R Offline
            raaghuu
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved