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

String properties can't be converted to enumerations from QML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.4
    • None

      Run the attached example:

      You will see an assert telling you:

      ASSERT failure in QFont::setWeight: "Weight must be between 0 and 99"

      This happens because the Font.Weight enum is stored in a qml string and have to be converted into int again. This fails.

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

            aalpert Alan Alpert
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes