Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, April 2007
QLabel of QT 4.3.0Beta has problem to show richtext


Message 1 in thread

Hi Sir,

QLabel can not show richtext properly and cause program crash under QT
4.3.0Beta. 

Under QT 4.3.0Beta, seems the attributes of tag "table" can not be deal
with properly. QLabel runs ok if taking "BORDER=1" out.

It seems no problem under Qt 4.2.3.

It is easy to reproduce it by running the following program under
different version(ex. Qt 4.2.3 and Qt 4.3.0Beta).

Confirm please.

Thanks,
Howard

=====================================================
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
	
    QLabel* lbl = new QLabel;
    lbl->setWindowTitle(QT_VERSION_STR);

    lbl->setText(
"<TABLE BORDER=1>"
"<TR><TD><P align=right>38</P></TD><TD><P align=right>11</P></TD></TR>"
"<TR><TD><P align=right>43</P></TD><TD><P align=right>11</P></TD></TR></TABLE>"
    );

    lbl->show();
	
    return app.exec();
}
======================================================

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx