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

Add support for std::chrono::duration from QML

    XMLWordPrintable

Details

    Description

      Some Qt APIs suffer from weakly typed durations, and it can be hard to see the unit of durations from code.

      This could be improved by supporting properties with std::chrono durations, such as std::chrono::milliseconds, as QML properties.

      See https://codereview.qt-project.org/c/qt/qtmultimedia/+/632065/ for an example where a networkTimeoutMs property would be better expressed with std::chrono::milliseconds than with ints.

      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
              johanseg Jøger Hansegård
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes