raphaelf
5th October 2006, 15:11
Hi everybody,
QT:4.1.3
OS: WIN
Compiler: MINGW
I was able to create a menu.
But i need to create a popupmenu with 2 columns.
The first column i need "add to". And the 2. Column i need to insert values from a database.
Its possible to create a popupmenu qith 2 columns?
Q3PopupMenu* contextMenu = new Q3PopupMenu( this );
if( Item )
contextMenu->popup( point );
Q_CHECK_PTR( contextMenu );
{
contextMenu->insertItem( "&add", this, SLOT(addTo()) );
contextMenu->exec( QCursor::pos() );
delete contextMenu;
return;
}
I need after to get the selected text from the popupmenu (2. Column)
Thanks
QT:4.1.3
OS: WIN
Compiler: MINGW
I was able to create a menu.
But i need to create a popupmenu with 2 columns.
The first column i need "add to". And the 2. Column i need to insert values from a database.
Its possible to create a popupmenu qith 2 columns?
Q3PopupMenu* contextMenu = new Q3PopupMenu( this );
if( Item )
contextMenu->popup( point );
Q_CHECK_PTR( contextMenu );
{
contextMenu->insertItem( "&add", this, SLOT(addTo()) );
contextMenu->exec( QCursor::pos() );
delete contextMenu;
return;
}
I need after to get the selected text from the popupmenu (2. Column)
Thanks