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

Q_FLAG Documentation typo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.0 RC
    • 5.12.7
    • Documentation
    • None
    • Fedora 31
      Qt 5.12.7
      GCC 64bit
    • All
    • 0c651768475aa882d606efe51d10fedc44b87566 (qt/qtbase/5.15)

    Description

      There is a typo within the usage example of Q_FLAG

      https://doc.qt.io/qt-5/qobject.html#Q_FLAG

      I believe it should be
      Q_FLAG(LoadHints)
      instead of
      Q_FLAG(LoadHint)
      At least this fixed my usage issues of Q_FLAG:

      moc_uLog.cpp:214:67: error: conversion from ‘QFlag’ to ‘ULog::ULogLevel’ is ambiguous

      214 | case 1: _t->setLogLevel(QFlag(reinterpret_cast<int>(_v))); break;

             |                                                                                                    ^

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            umbraadmortem Raphael Gstettenhofer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes