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. [SOLVED]How can I create TextArea element in desktop application

[SOLVED]How can I create TextArea element in desktop application

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 3.1k 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.
  • V Offline
    V Offline
    vamfirius
    wrote on last edited by
    #1

    I know that there is TextArea element for symbian, but I didnt found somthing like that for desktop. I just cant belive that such usefull thing does not exsists. I tryed to use symbians library for desctop application but it didn`t work. So question is - I miss somthing and TextArea element exists for desktop but it caled with another name, or I need to write my own .qml file with TextArea declaration(find some alredy writen in web)?
    Thanks in adwance.

    Sergei

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Did you have a look at "QTextDocument":http://qt-project.org/doc/qt-4.8/qtextdocument.html

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vamfirius
        wrote on last edited by
        #3

        Eddy

        Thanks, but it is not what I need. I`m looking for QML element. Closest to what I need is "TextEdit":http://doc.qt.nokia.com/4.7-snapshot/qml-textedit.html#textFormat-prop but to use it like sterling field of form(textarea) I should do some moves, like declare text selection, etc. May be I want too much, because I accustomed to using HTML.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dajansen
          wrote on last edited by
          #4

          Yes, TextArea is basically a TextEdit with convenience buttons for the methods and keyboard handling. Chances are, if you grab most of the base qml for the TextArea from gitorious you can make your own.

          Edit: here's the TextArea qml: http://qt.gitorious.org/qt-components/qt-components/blobs/570794a230d791dec69458eb4b9120ec996894b8/components/TextArea.qml

          QtQuick Quality Engineer / Lab Monkey
          Nokia Brisbane

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vamfirius
            wrote on last edited by
            #5

            Damian Jansen
            Thanks for your answer, I just didn`t whant to reinvent the wheel.)

            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