Obsolete Members for QMenu

以下成员源于类 QMenu 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(弃用) QAction * addAction (const QString & text , const QObject * receiver , const char * member , const QKeySequence & shortcut )
(弃用) QAction * addAction (const QIcon & icon , const QString & text , const QObject * receiver , const char * member , const QKeySequence & shortcut )
(弃用) QAction * addAction (const QString & text , Functor functor , const QKeySequence & shortcut )
(弃用) QAction * addAction (const QString & text , const QObject * context , Functor functor , const QKeySequence & shortcut )
(弃用) QAction * addAction (const QIcon & icon , const QString & text , Functor functor , const QKeySequence & shortcut )
(弃用) QAction * addAction (const QIcon & icon , const QString & text , const QObject * context , Functor functor , const QKeySequence & shortcut )

成员函数文档编制

QAction *QMenu:: addAction (const QString & text , const QObject * receiver , const char * member , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction(text, shortcut, receiver, member) 代替。

QAction *QMenu:: addAction (const QIcon & icon , const QString & text , const QObject * receiver , const char * member , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction (icon, text, shortcut, receiver, member) instead.

template <typename Functor> QAction *QMenu:: addAction (const QString & text , Functor functor , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction (text, shortcut, functor) instead.

template <typename Functor> QAction *QMenu:: addAction (const QString & text , const QObject * context , Functor functor , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction (text, shortcut, context, functor) instead.

template <typename Functor> QAction *QMenu:: addAction (const QIcon & icon , const QString & text , Functor functor , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction (icon, text, shortcut, functor) instead.

template <typename Functor> QAction *QMenu:: addAction (const QIcon & icon , const QString & text , const QObject * context , Functor functor , const QKeySequence & shortcut )

This function is deprecated. We strongly advise against using it in new code.

使用 QWidget::addAction (icon, text, shortcut, context, functor) instead.