[Qt-interest] New line in Rich Text Format

Maicon Kist maiconkist at gmail.com
Fri Feb 12 15:27:29 CET 2010


Hi list (again),

use <br> worked well.

Thanks.


On Fri, Feb 12, 2010 at 11:53 AM, william.crocker at analog.com
<william.crocker at analog.com> wrote:
>
>>> I can not add a new line in a QLabel with RTF text.
>>>
>>> I tried:
>>>
>>> label->append("\n");
>>> label->append("\r\n");
>>> label->append("\newline");
>>> label->append("\\newline");
>>>
>
> I have used HTML in QLabel to great success.
> In that case <br> would be the ticket.
>
> Bill
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list