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 withconvertfunc
. Thensetfunc
is used for setting the attribute on the action.convertfunc
can beNone
.If column is a string, the attribute of the view with that name will be used as column.