March 24, 2012

vamfirius vamfirius
Lab Rat
10 posts

[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

4 replies

March 24, 2012

Eddy Eddy
Area 51 Engineer
1296 posts
Did you have a look at QTextDocument [qt-project.org]
 Signature 

Qt Certified Specialist
Qt Ambassador

March 24, 2012

vamfirius vamfirius
Lab Rat
10 posts

Eddy

Thanks, but it is not what I need. I`m looking for QML element. Closest to what I need is TextEdit [doc.qt.nokia.com] 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.

March 24, 2012

Damian Jansen Damian Jansen
Lab Rat
18 posts

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

 Signature 

QtQuick Quality Engineer / Lab Monkey
Nokia Brisbane

March 24, 2012

vamfirius vamfirius
Lab Rat
10 posts

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

 
  ‹‹ List property and dynamic objects      Getting current location on Symbian^3 (Anna, Belle) devices ››

You must log in to post a reply. Not a member yet? Register here!