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

[REG: 5->6.2.3] QVariant(QString()) claims that isNull() is false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.3
    • None
    • MinGW 64
    • Windows

    Description

      On Qt v5.15.7 - Also on all previous versions from 5.5 upwards.

      The following code returns true.

      QVariant(QString()).isNull();   //returns true

       

      On Qt v6.2.3

      The following code returns false.

      QVariant(QString()).isNull();   //returns false

       

      The only change I can find with regard to QVariant::isNull is the following;

      Adapt SQL drivers to Qt 6 change of QVariant::isNull - qt/qtbase@999d856 - GitHub 

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            simongbit simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes