[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Intergrating mht file to konqueror
From:       Spiros Georgaras <sngeorgaras () otenet ! gr>
Date:       2004-09-24 17:08:23
Message-ID: 200409242008.23800.sngeorgaras () otenet ! gr
[Download RAW message or body]

> At compile time I get the error:
>
> kmhtconvert_part.cpp: In function `void* init_libkmhtconvert()':
> kmhtconvert_part.cpp:19: error: cannot allocate an object of type
> `kmhtConvertFactory'
> kmhtconvert_part.cpp:19: error:   because the following virtual functions
> are abstract:
> /opt/kde3/include/klibloader.h:393: error:      virtual QObject*
> KLibFactory::createObject(QObject* = 0, const char* = 0, const char* =
> "QObject", const QStringList& = QStringList())
> make[2]: *** [kmhtconvert_part.lo] Error 1
>
> What is wrong? I have followed the tutorial to the letter (adapting it to
> my app of course). Can you help?
>
> Spiros

Ok I fixed that...

The code in the 'Embedded Components Tutorial' used 

QObject *AktionFactory::create(QObject *parent, const char *name, const char*, 
const QStringList& )

instead of

QObject *AktionFactory::createObject(QObject *parent, const char *name, const 
char*, const QStringList& )


Now the app works as an embedded component, but the result is far from beeing 
what I've expected. Anyway, thanks for your help so far. I suppose I'll be 
bugging you again in the future :)

Spiros
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic