以下成员源于类 QAction 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated in 6.0)
QList<QGraphicsWidget *>
|
associatedGraphicsWidgets () const |
(deprecated in 6.0)
QList<QWidget *>
|
associatedWidgets () const |
(deprecated in 6.0)
QWidget *
|
parentWidget () const |
[deprecated in 6.0]
QList
<
QGraphicsWidget
*> QAction::
associatedGraphicsWidgets
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 associatedObjects () 采用 qobject_cast () 代替。
Returns a list of graphics widgets this action has been added to.
另请参阅 QGraphicsWidget::addAction (), associatedObjects (),和 associatedWidgets ().
[deprecated in 6.0]
QList
<
QWidget
*> QAction::
associatedWidgets
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 associatedObjects () 采用 qobject_cast () 代替。
返回已添加此动作的小部件列表。
另请参阅 QWidget::addAction (), associatedObjects (),和 associatedGraphicsWidgets ().
[deprecated in 6.0]
QWidget
*QAction::
parentWidget
() const
This function is deprecated since 6.0. We strongly advise against using it in new code.
使用 parent () 采用 qobject_cast () 代替。
返回父级 Widget。