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

Unsupported type UserType error when using 'true' or 'false' as a condition for when:

    XMLWordPrintable

Details

    Description

      When using true as a condition for the when clause of a State, QML fails with an Unsupported type error and doesn't load the file.

      If put in parenthesis (i.e. (true)), it works.

      import QtQuick 1.0
      
      Rectangle {
          width: 360
          height: 360
      
          color: "blue";
      
          states: [State {
              name: "test";
              when: true;
          }]
      }

      The problem is also here when using 1 or 0.

      Attachments

        For Gerrit Dashboard: QTBUG-21551
        # Subject Branch Project Status CR V

        Activity

          People

            shausman Simon Hausmann
            coyotte508 coyotte508
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes