[PyKDE] KPDF KPart

İsmail Dönmez ismail at uludag.org.tr
Wed Sep 21 20:14:35 BST 2005


Çarşamba 21 Eylül 2005 22:05 tarihinde, Rajeev J Sebastian şunları yazmıştı: 
> On Wednesday 21 September 2005 6:32 pm, Jim Bublitz wrote:
> > On Wednesday 21 September 2005 10:50, David Boddie wrote:
> >
> >
> > It's important to use KParts.MainWindow instead of KMainWindow for your
> > application - something that's easy to overlook (at least it is for me).
>
> 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 ).

Regards,
ismail




More information about the PyQt mailing list