Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 10

Qt-interest Archive, March 2002
A problem about QPopupMenu Class


Message 1 in thread

Everybody,
      I have a problem about QPopupMenu. I have a main QPopupMenu class,
and it has a sub-popup menu class, I want to write a custom class which
inherits QPopupMenu. The functions of this class is: for example, this
popupmenu should have 20 menuitems, but I need it only to show 10 menuitems
and a "Previous" and a "Next" item one time, and the user can click
"Previous" item to see the previous item or click "Next" item to see the
next item and this sub-popup menu and its parent menu don't hide. If the
user click one of the 10 items, this sub-popup menu and its parent menu can
hide. Where can I find the source code to realize these functions? or what
should I do?
      Thanks in advance.

Qi Liang