[bt-devel] question

Joachim Ansorg bt-devel@crosswire.org
Fri, 17 May 2002 17:48:26 +0200


QPopupMenu::insert works with QPopupmenu's too.

QPopupMenu* m1 = new QPopupmenu(...);
QPopupMenu* m2 = new QPopupmenu(...);

m1->insertItem(i18n("de"), m2);

This should work. There are different insertItem declarations which take 
additional arguments like icons.

Joachim

> Hm. Can somebody help me? How do I insert submenus in Popup menus? Is this
> possible easily?
>
> Martin
>
> Am Freitag, 17. Mai 2002 14:40 schrieb Martin Gruner:
> > I want to group the items in the module choosing popup, because the
> > module list already fills my whole screen. They should be put in
> > submenus.
> >
> > Should I group them according to the first letter (A,B,...) or to the
> > language (de,en,...)? I'd suggest according to language.
> >
> > Martin
> >
> > Examples
> >
> >
> > A
> >  ACV
> >  ALB
> >  ASV
> > B
> >  ...
> >
> > ---
> >
> > de
> >  GERLUT
> >  GERELB
> >  GERHOF
> > en
> >  NIV
> >  KJV
> > ....