Hello....
Its all magic done by html script. Try this code .. and tell me you can see the text bigger
#include <QApplication>
#include <QWidget>
#include <QLabel>
#include <QString>
int main(int argc, char **argv)
{
w->setWindowTitle("lokesh");
//QString ritchText("<h1><b><font color='green'> <font size=40>\"+text+\"</font></font></b>");
QString ritchText
("<html><head><meta name=\"qrichtext\" content=\"1\" /></head>" "<body style=\" white-space: pre-wrap; font-family:Sans Serif; "
"font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; "
"margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:200pt;\">Qt Centre</p>"
"</body></html>");
label->setText(ritchText);
w->setFixedSize(label->sizeHint());
w->show();
return a.exec();
}
#include <QApplication>
#include <QWidget>
#include <QLabel>
#include <QString>
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QWidget *w = new QWidget(0);
w->setWindowTitle("lokesh");
//QString ritchText("<h1><b><font color='green'> <font size=40>\"+text+\"</font></font></b>");
QString ritchText("<html><head><meta name=\"qrichtext\" content=\"1\" /></head>"
"<body style=\" white-space: pre-wrap; font-family:Sans Serif; "
"font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; "
"margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:200pt;\">Qt Centre</p>"
"</body></html>");
QLabel *label = new QLabel(w);
label->setText(ritchText);
w->setFixedSize(label->sizeHint());
w->show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
You can increase / decrease this
font-size:200pt;
font-size:200pt;
To copy to clipboard, switch view to plain text mode
Cheers
Bookmarks