Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

src_gui_kernel_qaction.cpp

//! [0]
QApplication app(argc, argv);
app.setAttribute(Qt::AA_DontShowIconsInMenus);  // Icons are *no longer shown* in menus
// ...
QAction *myAction = new QAction();
// ...
myAction->setIcon(SomeIcon);
myAction->setIconVisibleInMenu(true);   // Icon *will* be shown in menus for *this* action.
//! [0]

Generated by  Doxygen 1.6.0   Back to index