qmenuview.view.SetDataArgs

class qmenuview.view.SetDataArgs(setfunc, column, role, convertfunc)[source]

Bases: object

A container of arguments for setting attributes on an action.

The data is queried from the model with role. Then converted with convertfunc. Then setfunc is used for setting the attribute on the action. convertfunc can be None.

If column is a string, the attribute of the view with that name will be used as column.

__init__(setfunc, column, role, convertfunc)[source]

Initialize a new container

Raises:None