Wiki Markup |
---|
{alias:qaction}
h2. Name
*qaction* — callback object assigned to widgets
h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*qaction* \[_text_] \[_cmds_ ...]
{panel}
h2. Description
The *qaction* command creates a QAction object. This objects serves the purpose of containing the commands to be executed in response to the user selecting various controls, like menu items. Actions usually contain a descriptive text or an icon. Actions are used to populate menus. See [qmainwindow] for examples.
h2. Arguments
_text_
{indent}A text used to identify the action element in a group.{indent}
_cmds_
{indent}Commands to be executed when the action object is selected. This must be a single Tcl element, but commands can be grouped in a string or list.{indent}
{pagebreak}
|
Page Comparison
General
Content
Integrations