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

qDebug support for std::chrono

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 6.6.0 Beta1
    • 6.6.0
    • Core: I/O
    • None
    • All
    • a2551c45d496c23045eb8451e080e75b2f8b42c1

    Description

      While QTBUG-51950 did introduce QDebug support for many STL compound types, there is no qDebug support for `std::chrono` types (as implemented by `operator<<`; example for duration: https://en.cppreference.com/w/cpp/chrono/duration/operator_ltlt). This makes it pretty clunky to use std::chrono types in together with QDebug as we either have to manually implement `QDebug operator<<` or manually assemble the log message (`qDebug() << some_duration.count() << "hardcoded unit"`);

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            swiftb0y Nikolaus Einhauser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes