The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
QAction ( QObject * parent, const char * name ) | |
QAction ( const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name ) | |
QAction ( const QIcon & icon, const QString & text, const QKeySequence & shortcut, QObject * parent, const char * name ) | |
QKeySequence | accel () const |
bool | addTo ( QWidget * w ) |
QIcon | iconSet () const |
bool | isOn () const |
bool | isToggleAction () const |
QString | menuText () const |
bool | removeFrom ( QWidget * w ) |
void | setAccel ( const QKeySequence & shortcut ) |
void | setIconSet ( const QIcon & i ) |
void | setMenuText ( const QString & text ) |
void | setToggleAction ( bool b ) |
void | setOn ( bool b ) |
void | activated ( int i = 0 ) |
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use one of the QAction constructors that doesn't take a name argument and call setObjectName() instead.
Use shortcut() instead.
See also setAccel().
Use triggered() instead.
Use QWidget::addAction() instead.
For example, if you have code like
action->addTo(widget);
you can rewrite it as
widget->addAction(action);
Use icon() instead.
See also setIconSet().
Use isChecked() instead.
Use isCheckable() instead.
Use text() instead.
See also setMenuText().
Use QWidget::removeAction() instead.
For example, if you have code like
action->removeFrom(widget);
you can rewrite it as
widget->removeAction(action);
Use setShortcut() instead.
See also accel().
Use setIcon() instead.
See also iconSet().
Use setText() instead.
See also menuText().
Use setChecked() instead.
See also isOn().
Use setCheckable() instead.
See also isToggleAction().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.