KLibLoader.factory ..."KCrash: ..."

Python und das Qt-Toolkit, erstellen von GUIs mittels des Qt-Designers.
speedee

KLibLoader.factory ..."KCrash: ..."

Beitragvon speedee » Freitag 26. August 2005, 07:45

I can't use KLibLoader - everytime it crashed!

def MyDef (self):
offer = KTrader.self().query("text/html")
# my offer can handle HTML and is a part.
# get the library and load that
strOffer = offer[0].library().latin1()
factory = KLibLoader().factory (strOffer)
if factory :
html = factory.create ()

... I tried it with and without arguments - the only answer I got was:
"KCrash: Application 'MyApp.py' crashing..
Gast

code...

Beitragvon Gast » Freitag 26. August 2005, 07:47

sorry, the code again:

Code: Alles auswählen

def MyDef (self):
    offer = KTrader.self().query("text/html")
    # my offer can handle HTML and is a part.
    # get the library and load that
    strOffer = offer[0].library().latin1()
    factory = KLibLoader().factory (strOffer)
    if factory :
        html = factory.create ()

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder