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

QVariant.toJsonValue() should convert from Bool, String, number types, etc.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.6.0
    • Core: Object Model
    • None
    • Windows 10 Mingw x32

    Description

      QVariant.toJsonValue() is not working

      QVariant variant(QString("Test"));
      QJsonValue jsonValue = variant.toJsonValue(); // undefined instead of "Test"
      

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            vkaestle67 Vincent Kaestle
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes