Classes | GUI

CustomViewAction : AbstractMenuAction : QObject : Object

A MenuAction that can contain a View.
Source: Menu.sc

Description

A CustomViewAction is a MenuAction that contains a View instead of an icon or text. This enables embedding of interactive components to a Menu or ToolBar.

Class Methods

CustomViewAction.new(view, function)

Create a new CustomViewAction

Arguments:

view

A View.

function

A Function to execute when this item is selected.

NOTE: In some cases, the View that the CustomViewAction contains will absorb mouse clicks, making it difficult to select this menu item (and thus trigger the action).

Inherited class methods

16 methods from QObject ► show
7 methods from Object ► show

Undocumented class methods

CustomViewAction.qtClass

Instance Methods

.defaultView

.defaultView = v

Set the View that is attached to this CustomViewAction.

Arguments:

v

A View.

Inherited instance methods

25 methods from QObject ► show
266 methods from Object ► show