Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34496

QVariant operator==() documentation doesn't answer all questions

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.2.0
    • None
    • Documentation
    • None
    • Qt 5.1

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            docteam Qt Documentation Team
            random-citizen Random Citizen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes