Hello, I've been working with the TextArea and it has some behaviours that are improper when I'm handling rich text content IMHO. For example:
When I set the following TextArea: TextArea { textMode: TextEdit.RichText placeholdText: "Place hold" text: "Here goes a <b>Rich Text</b>" } I get: this when I read the text property: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" " http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Nokia Pure'; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Here goes a <span style=" font-weight:600;">Rich Text</span></p></body></html> Is this the content text that must be returned by the property text? If it is okay, shouldn't we have a plainText property or something like that to return the pure textual content? When I erase the TextArea, once it was filled with a rich text content, it never shows the placeholderText. Isn't it improper? Cheers, -- Daker Fernandes Pinheiro openBossa INdT - Instituto Nokia de Tecnologia Blog: http://codereal.blogspot.com Twitter: @dakerfp
_______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components