Action
::Action( enum ,
const QIcon & icon,
const QString & text,
{
}
Action class is derived from
QAction.
creation of menu action for contextmenu device
--------
createMethode()
{
menu
->addAction
( new Action
( enum value,
QIcon(), tr
( "Open" ), menu
) );
}
Action::Action( enum , const QIcon & icon, const QString & text,
QObject * parent, int ) :
QAction( icon, text, parent ),
{
}
Action class is derived from QAction.
creation of menu action for contextmenu device
--------
createMethode()
{
QMenu * menu = new QMenu( _parent );
menu->addAction( new Action( enum value, QIcon(), tr( "Open" ), menu ) );
}
To copy to clipboard, switch view to plain text mode
Bookmarks