Hello!

I have two classes that have a 1:N relationship with each other, e.g. and Item class that is connected to an ItemType class. I want to be able to decide with a given Item object and ItemType object if the Item is of that type.

My idea was to use unique ids for both classes and have a member in Item that stores its ItemType's id. I see Qt has a class named QUuid, but it has no copy constructor. I know I can still hack it, e.g. convert the QUuid to a string, and store that in the Item class, but this idea seems to be going agains the intentions of QUuid.

What is the correct way to do this in Qt?

Thank you,
Viki