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

Constructor of QVariant from a Type can return non null variant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.15.0
    • None

    Description

      Using

      QVariant::QVariant(Type type)
      { create(type, nullptr); }

      with type such as

      struct MyType {
              int id;
              std::string name;
          };
      

      is returning a non null variant.

      The issue as probably been introduced while fixing: QTBUG-73196.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            ml71 Mathieu Latourrette
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes