MrGarbage
28th September 2007, 03:11
I want to have a multi level context menu popup when I right click
in myWidget.
Right clicking shows 'Display', which when moved to with the cursor
then shows the option menu items...
Display >
Option 1
Option 2
Option 3
I've got the 'Display' to popup, but how to I get the second
level of popup?
Devices_table->setContextMenuPolicy( Qt::CustomContextMenu );
m_Columnmenu = new QMenu( this );
m_ColumnDisplayAction = new QAction(tr("Display"), this);
m_Columnmenu->addAction( m_ColumnDisplayAction );
Mark
in myWidget.
Right clicking shows 'Display', which when moved to with the cursor
then shows the option menu items...
Display >
Option 1
Option 2
Option 3
I've got the 'Display' to popup, but how to I get the second
level of popup?
Devices_table->setContextMenuPolicy( Qt::CustomContextMenu );
m_Columnmenu = new QMenu( this );
m_ColumnDisplayAction = new QAction(tr("Display"), this);
m_Columnmenu->addAction( m_ColumnDisplayAction );
Mark