Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Name

qaction — callback object assigned to widgets

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

qaction [text] [cmds ...]

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.

Arguments

text

A text used to identify the action element in a group.

cmds

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.