Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Name

qaction — callback object assigned to widgets

Syntax

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.

  • No labels