Trolltech Home | QSA-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

QSA-interest Archive, September 2005
QSObjectFactory::classes() ??


Message 1 in thread

Hi
I trying to use QSObjectFactory for my project and just read about a 
member-function "classes()" in the doc of QSObjectFactory.
That classes-function isn´t part of QSObjectFactory having a look at 
qsobjectfactory.h ....

...so I don´t have to worry not reimplementing it? I simply return 0 if my 
QSObjectFactory subclass cannot handle the requested string?

Please correct the doc.

Greetings
	Jens

To unsubscribe - send "unsubscribe" in the body to qsa-interest-request@xxxxxxxxxxxxx


Message 2 in thread

I´m using QSA 1.2.0

Am Samstag, 10. September 2005 12:36 schrieb Jens:
> Hi
> I´m trying to use QSObjectFactory for my project and just read about a
> member-function "classes()" in the doc of QSObjectFactory.
> That classes-function isn´t part of QSObjectFactory having a look at
> qsobjectfactory.h ....
>
> ...so I don´t have to worry not reimplementing it? I simply return 0 if my
> QSObjectFactory subclass cannot handle the requested string?
>
> Please correct the doc of QSA 1.2.0
>
> Greetings
> 	Jens
>
> To unsubscribe - send "unsubscribe" in the body to
> qsa-interest-request@xxxxxxxxxxxxx

To unsubscribe - send "unsubscribe" in the body to qsa-interest-request@xxxxxxxxxxxxx


Message 3 in thread

Jens wrote:
> I trying to use QSObjectFactory for my project and just read about a 
> member-function "classes()" in the doc of QSObjectFactory.
> That classes-function isn´t part of QSObjectFactory having a look at 
> qsobjectfactory.h ....
> ...so I don´t have to worry not reimplementing it? I simply return 0 if my 
> QSObjectFactory subclass cannot handle the requested string?

Hi, Jens.

You're quite right, there is no such thing as a classes() method, and 
you do not need to implement it. The sentence in the documentation:

"Alternatively, the application programmer can subclass QSObjectFactory 
and reimplement the create() and classes() functions."

should be something to the effect of:

"Alternatively, the application programmer can subclass QSObjectFactory, 
reimplement the create() function and register the provided classes
using the registerClass() function."

Sorry about this, and thanks for the report!

> Please correct the doc.

Done.

best regards,
Eskil

To unsubscribe - send "unsubscribe" in the body to qsa-interest-request@xxxxxxxxxxxxx


Message 4 in thread

Hi
I trying to use QSObjectFactory for my project and just read about a 
member-function "classes()" in the doc of QSObjectFactory.
That classes-function isn´t part of QSObjectFactory having a look at 
qsobjectfactory.h ....

...so I don´t have to worry not reimplementing it? I simply return 0 if my 
QSObjectFactory subclass cannot handle the requested string?

Please correct the doc of QSA 1.2.0.

Greetings
	Jens

To unsubscribe - send "unsubscribe" in the body to qsa-interest-request@xxxxxxxxxxxxx