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
Forum Update on Monday, May 27th 2025

TextField

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 2.6k Views
  • 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 20 Jul 2012, 10:00 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 20 Jul 2012, 12:24 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 20 Jul 2012, 15:32 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 23 Jul 2012, 02:02 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 23 Jul 2012, 05:13 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

            5/5

            23 Jul 2012, 05:13

            • Login

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