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

QML: Provide easy access to enums' string names

XMLWordPrintable

    • a35b0e44a (dev), 5e312953f (dev)

      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?

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

            olivier.decanniere Olivier De Cannière
            skoh-qt Sze Howe Koh
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes