qraise - raise child widget, making it visible
Name
qraise — raise child widget, making it visible
Syntax
qraise [widget]
Description
The qraise command raises a child widget to the top of the parents child widget stack. If the window was hidden behind other sibling windows this command will make it appear on top.
Arguments
widget
The child widget to be raised. If this argument is not provided the current widget will be used instead.
Examples
Ex.1: Raise windows
# Parent window set w [qwidget] qsetattribute deleteonclose qsetwindowtitle "Parent" set layout [qhboxlayout $w] # Child windows to be raised. Note the use of parent widget argument '$w' and 'window' flags. # This will make the widgets stand alone windows while still being children of w. set child1 [qwidget $w window] qsetwindowtitle "Child 1" set child2 [qwidget $w window] qsetwindowtitle "Child 2" set child3 [qwidget $w window] qsetwindowtitle "Child 3" # Raise buttons set b [qpushbutton "Raise child 1" { qraise $child1 } ] qaddwidget $layout $b set b [qpushbutton "Raise child 2" { qraise $child2 } ] qaddwidget $layout $b set b [qpushbutton "Raise child 3" { qraise $child3 } ] qaddwidget $layout $b qshow $w qshow $child1 qshow $child2 qshow $child3
The example Raise windows creates one parent window and three child windows. The child windows can be raised individually using the buttons in the parent window.