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

QML: Provide easy access to enums' string names

    XMLWordPrintable

Details

    Description

      qDebug() and friends print Q_ENUM names by default (instead of their numerical values). It would be very nice if console.log() and friends could do the same.

      If changing the default behaviour is not desirable, would it be possible to expose something like QMetaEnum::keyToValue() to QML?

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              skoh-qt Sze Howe Koh
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes