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

Modernize comparisons [Core: QVariant]

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.0 FF
    • None
    • Core: Object Model
    • None

      See epic for the big picture and (the latest version of) QTBUG-104113 for a detailed description of the necessary changes.

      QVariant is special in that we used to have op< et al, but, since variants of different type may not be comparable, or contained types may not be ordered, we removed it again. C++20 std::partial_order would allow to bring this back, and report QVariant(QRect()) <=> QVariant("hello") as unordered.

      Discuss and implement.

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

            ivan.solovev Ivan Solovev
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes