[Qt-interest] New line in Rich Text Format

Raul Metsma raul at innovaatik.ee
Fri Feb 12 14:53:02 CET 2010


What about
label->append("<br />");

Raul Metsma

On 02/12/2010 03:48 PM, Rudenko Eugene wrote:
> Have you tried label->setWordWrap(true); ?
>> Hi list,
>>
>> 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");
>>
>> and none worked.
>>
>> Can anyone help me?
>>
>> Thnks
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> 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