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

QVariant::convert() to convert a double number to a registered enum type fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.2
    • 5.4.1
    • Core: Other
    • None

    Description

      When a QVariant contains a double number, calling QVariant::canConvert() on the QVariant returns true, but calling QVariant::convert() returns false. It seems a bug. Attached is the sample code for duplication. Please investigate.

      Attachments

        1. main.cpp
          0.4 kB
          Dongmei Wang

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              dongmei Dongmei Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes