QUndoViewclass displays the contents of aQUndoStack. 更多 …
def
cleanIcon
()
def
emptyLabel
()
def
group
()
def
setCleanIcon
(icon)
def
setEmptyLabel
(label)
def
stack
()
QUndoView是QListView,显示被压入撤消堆栈的命令列表。始终选择最近执行的命令。选择不同的命令导致调用setIndex(), rolling the state of the document backwards or forward to the new command.堆栈可以被明确设置采用
setStack(). Alternatively, aQUndoGroup对象可以被设置采用setGroup(). The view will then update itself automatically whenever the active stack of the group changes.![]()
QUndoView
(
group
[
,
parent=None
]
)
¶
QUndoView(stack[, parent=None])
QUndoView([parent=None])
- param parent
- param group
- param stack
构造新视图采用父级
parent
and sets the observed group to
group
.
The view will update itself autmiatically whenever the active stack of the group changes.
构造新视图采用父级
parent
and sets the observed stack to
stack
.
构造新视图采用父级
parent
.
PySide2.QtWidgets.QUndoView.
cleanIcon
(
)
¶
QIcon
另请参阅
PySide2.QtWidgets.QUndoView.
emptyLabel
(
)
¶
unicode
另请参阅
PySide2.QtWidgets.QUndoView.
group
(
)
¶
Returns the group displayed by this view.
If the view is not looking at group, this function returns
None
.
另请参阅
PySide2.QtWidgets.QUndoView.
setCleanIcon
(
icon
)
¶
icon
–
QIcon
另请参阅
PySide2.QtWidgets.QUndoView.
setEmptyLabel
(
label
)
¶
label – unicode
另请参阅
PySide2.QtWidgets.QUndoView.
setGroup
(
group
)
¶
group
–
QUndoGroup
Sets the group displayed by this view to
group
。若
group
is
None
, the view will be empty.
The view will update itself automatically whenever the active stack of the group changes.
另请参阅
PySide2.QtWidgets.QUndoView.
setStack
(
stack
)
¶
stack
–
QUndoStack
Sets the stack displayed by this view to
stack
。若
stack
is
None
, the view will be empty.
If the view was previously looking at a
QUndoGroup
, the group is set to
None
.
另请参阅
PySide2.QtWidgets.QUndoView.
stack
(
)
¶
Returns the stack currently displayed by this view. If the view is looking at a
QUndoGroup
, this the group’s active stack.
另请参阅