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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes