QPopup menu--inserting submenu's
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
Re: QPopup menu--inserting submenu's
use
Code:
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