Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
Qt 5.1
Description
The documentation of the QVariant::operator==() is not answering all questions.
The important question is how user defined types are handeled:
- is the result undefined?
- are only adresses compared?
- is the data compared bytewise?
- has using the Q_DECLARE_METATYPE macro an effect?
After experimenting with it, I would assume user types are compared bytewise. But that's just an assumption.
It would be optimal if programmers could know the behavior by reading the documentation.