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

src_gui_widgets_qlineedit.cpp

//! [0]
void LineEdit::contextMenuEvent(QContextMenuEvent *event)
{
    QMenu *menu = createStandardContextMenu();
    menu->addAction(tr("My Menu Item"));
    //...
    menu->exec(event->globalPos());
    delete menu;
}
//! [0]

Generated by  Doxygen 1.6.0   Back to index