Hello

i have a question related to QVariant's user types. As i may have already said in a previous post, i'm implementing a derived class from "QItemEditorFactory" so it can handle my own types, and also for some built-in types (QRect/F, QPoint/F, etc).

In my factory, i use a switch to compare the given type (in createEditor(QVariant::Type, QWidget *parent)) to types built-into QVariant (QRect/F, QPoint/F).

But i don't understand how i am supposed to compare the given argument (Type) to know wether it's one of my own types because it's always UserType in the case of a specific user type item (But no detail on what user type)... i'm a bit lost into the QVariant typing thingy.

As far as i understand (And since i'm calling myself createEditor on the default installed item editor factory, i may want to pass my very specific custom type (UserType+1, UserType+2), or something?

Thanks,
Pierre.