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

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

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • 5.2.0
    • None
    • Documentation
    • 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes