Wiki Markup |
---|
{alias:qlabel} |
Name
qlabel — read only text field
...
A label may also show a pixmap instead of text. To set the pixmap use the qsetpixmap command.
Arguments
text
The label text.
Examples
Ex.1: Simple label
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget ]
qsetwindowtitle QLabel
qvboxlayout {
qlabel "My label"
}
qshow $w
|
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget ]
qsetwindowtitle QLabel
qvboxlayout {
qlabel "My <em>HTML</em> <b>label</b>"
}
qshow $w
|
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget ]
qsetwindowtitle QLabel
qvboxlayout {
set l [qlabel ]
set pm [qpixmap c:/structured_points.xpm]
qsetpixmap $l $pm
}
qshow $w
|
...