On Wed, 21 Sep 2005 19:22:52, Rajeev J Sebastian wrote:

> On Wednesday 21 September 2005 7:14 pm, İsmail Dönmez wrote:
> > > On the other hand, I did have to use KApplication instead of
> > > QApplication. I guess this was why my code was segfaulting. I didn't
> > > have to change my KPart loading code after noticing David Boddie's
> > > (great!) tip to use KApplication.
> >
> > You need KApplication for almost all KDE classes ( except some parts of
> > KDEUI classes ).
>
> Thanks ! :):)
>
> OK ... so how do I load and show the standard toolbar/menubar for the KPDF
> Part ?

Uncomment the line in the source code I posted:

    window.createGUI(part)

This should show the menus, but I can't guarantee that they'll appear in
the correct order. For some reason, the Help menu appeared at the left hand
end of the menu bar when I tried this.

David

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to