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

QDebug operator<< for registered enums produces funny results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.5.0 Beta
    • 5.5.0
    • Core: I/O
    • None
    • Linux, Windows
    • 50e2bc2aa0f46562936a3137c15a2c9b4f67afde

      Discovered while working on https://codereview.qt-project.org/#/c/106172/ .

      It looks like it only works every 2nd time:

          qDebug()  
                   <<  Qt::WindowTitleHint
                   <<Qt::Window
                  <<Qt::Desktop
                 << Qt::WindowSystemMenuHint;
      

      produces

       Qt::WindowType(WindowTitleHint) 1 Qt::WindowType(Desktop) 8192
      

      Relevant commits: https://codereview.qt-project.org/#/c/89416/

        For Gerrit Dashboard: QTBUG-44462
        # Subject Branch Project Status CR V

            ogoffart Olivier Goffart (Woboq GmbH)
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes