[Qt-embedded-interest] How to make text in Qlabel bigger?
RyanYee/叶晔
godyee at gmail.com
Fri Oct 30 02:07:40 CET 2009
My qlabel in a layout box,box in a QWidgt,like this
InputWidget::InputWidget()
:QWidget(0
, Qt::Tool| Qt::WindowStaysOnTopHint
| Qt::FramelessWindowHint)
{
inputl=new QLabel("input:");
displ=new QLabel("disp:....");
hlayout=new QHBoxLayout();
inputl->setFixedWidth(250);
inputl->setMargin(1);
displ->setTextFormat(Qt::RichText);
displ->setFixedWidth(700);
displ->setMargin(1);
hlayout->addWidget(inputl);
hlayout->addWidget(displ);
hlayout->setContentsMargins(1,1,1,1);
setLayout(hlayout);
resize(1280,50);
setGeometry(1,1,1278,48);
move(0,650);
}
The text display ok,but too small,what others I can do to make things better?
must I use other font?
By the way,if I want some part of string bigger,can rich text do this things?
--
RyanYee
Sent from Shenzhen, 44, China
More information about the Qt-embedded-interest
mailing list