Results 1 to 2 of 2

Thread: QPopup menu--inserting submenu's

  1. #1
    Join Date
    Sep 2007
    Posts
    22
    Thanks
    1

    Default 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

  2. #2
    Join Date
    Apr 2007
    Location
    Bangalore,India
    Posts
    25
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QPopup menu--inserting submenu's

    use

    Qt Code:
    1. int QMenuData::insertItem ( const QString & text, const QObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )
    To copy to clipboard, switch view to plain text mode 

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.