[Kde-games-devel] Re: KToolBar ?

Andreas Beckermann b_mann at gmx.de
Fri Aug 22 00:30:51 CEST 2003


On Thursday 21 August 2003 22:58, Aaron J. Seigo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 21 August 2003 02:37, cantabile wrote:
> > (void)new KAction(i18n("&Stop"), QIconSet(QPixmap("/pics/stop.png")),0,
> > this, SLOT(slotstop()),actionCollection(), "stop_anim");
> >
> > How do I make this appear in a toolbar ? So far, every toolbar I can see
> > is empty...
[...]
> or you define a toolbar in your ui.rc file and put the action by name
> there:
>
>  <ToolBar name="mainToolBar" fullWidth="true" >
>   <Separator/>
>   <Action name="stop_anim"/>
>  </ToolBar>

This way is the preferred one (I do not know _any_ reason for using the manual 
way - this includes advanced uses!).

CU
Andi


More information about the kde-games-devel mailing list