Wiki Markup |
---|
{alias:qsetfixedsize} |
Name
qsetfixedsize — Set fixed widget geometry
...
Use
qsetfixedesize sparingly. Geometry management is usually best left to QTcl, which takes into account the users operating system and screen resolution to create the best result.
Arguments
widget
Target widget. If not given the current widget is used.
width
Width in pixels.
height
Height in pixels.
Examples
Ex.1: Fixed Window
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget ]
set layout [qvboxlayout $w]
set label [qlabel "Hello"]
qaddwidget $layout $label
# Set window size in pixels
qsetfixedsize $w 200 200
qshow $w
|
...