PDA

View Full Version : Draw a line in a Label



sabeesh
23rd July 2007, 07:19
Hi,
I am new in QT, I try to create a simple programe in QT. My problem is that, I have 5 QLabels in my screen. I need to draw a line in one QLabel. (ie, I have 5 QLabels named as QLabel1, QLabel2, QLabel3, QLabel4 and QLabel5. I need to draw a line in QLabel5.) How can I do this?. Please help me.

Sabeesh

xgoan
23rd July 2007, 08:35
Try <hr> in text

sabeesh
23rd July 2007, 09:33
hi,
I am not clear. Please give the source code for it.

sabeesh

xgoan
23rd July 2007, 09:52
label->setText("<hr>");

jpn
23rd July 2007, 13:27
Or use QFrame::HLine (http://doc.trolltech.com/4.3/qframe.html#Shape-enum) or QFrame::VLine (http://doc.trolltech.com/4.3/qframe.html#Shape-enum) instead of QLabel.