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

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

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

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 () 
Antworten