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

String properties can't be converted to enumerations from QML

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        1. fontWeightTest.tar.gz
          14 kB
          Dominik Holland
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes