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

Sort out deprecation of qVariant{From,Set}Value()

    XMLWordPrintable

Details

    • All
    • c19d556863d931f5fd04d9e27ee7a47aafeaca2a (qt/qtbase/dev)

    Description

      Fom development@ discussion, first chehrlic:

      [...] the two functions qVariantFromValue() and qVariantSetValue() are deprecated but the replacements QVariant::setValue() / fromValue() are using exactly those two functions...
      Those two functions are some of the last obsolete functions which did not yet get decorated with QT_DEPRECATED but since this is affects a major class of Qt I don't think it's a task for me.

      to which peppe replied:

      Could it simply be possible to move the implementation of qVariantSetValue to QVariant::setValue, and then have the former call the latter, instead of viceversa?

      That sounds like a plausible solution; we clearly need to look into this.

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes