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

QML module API does not support enums

XMLWordPrintable

    • 9140731319269c75f24e80075750971e00844906

      QML module API does not support enums. Enums defined in QML module API are not accessible.

      It is a rather common use case for QML module APIs is to provide enums. For example, 2 out of 4 example cases in QTBUG-17318 use enums.

      import QtMobility.feedback.themeEffect 1.1 as ThemeEffect
      Button {
          onPressed: ThemeEffect.play(ThemeEffect.Sensitive)
      }
      
      import QtQuick.orientation 2.0 as Orientation
      Window {
          rotation: Orientation.orientation == Orientation.Portrait ? 0 : 90
          Behavior on rotation { NumberAnimation { .. } } 
      }
      

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

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes