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.