PDA

View Full Version : QPopup menu--inserting submenu's



Pharell
17th September 2007, 10:36
Hello there,

I have a question regarding Qpopup menu's in qt3. I have a QPopmenu but i want to insert in this popupmenu a submenu.

For example; this is my currect Qpopupmenu

test1

test2

test3

test4...............(here i want to insert a submenu)

i could not figure how to do that cuz i dont see if it is possible.

I need yours help

Regards
Pharell

veda
18th September 2007, 14:07
use


int QMenuData::insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )


Make your receiver object as the PopupMenu i.e., test4