[SOLVED]How can I create TextArea element in desktop application
-
I know that there is TextArea element for symbian, but I didn
t found somthing like that for desktop. I just can
t 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
-
Did you have a look at "QTextDocument":http://qt-project.org/doc/qt-4.8/qtextdocument.html
-
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.
-
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
-
Damian Jansen
Thanks for your answer, I just didn`t whant to reinvent the wheel.)