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

QVariant::Handler should be extendable

    XMLWordPrintable

Details

    Description

      The QVariant::operator== does not compare custom types, as written in the documentation.

      So there is no way to find (QCheckBox::findData) a value again if you've put it into a QCheckBox::itemData. The QVariant::Handler should be extendable to allow the comparison of own defined types when needed.

      Better yet if we could detect at the time of the metatype registration if extra operators (like operator==) are defined, using templates. Boost has some code to detect that.

      Attachments

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

        Activity

          People

            stormols Marius Storm-Olsen
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes