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

some docs use openMode flags from qt5. error: incomplete type ‘QIODevice’ used in nested name specifier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2
    • Documentation
    • None
    • All

    Description

      some parts of the docs still use old qt5 names

      for example https://doc.qt.io/qt-6/qdatastream.html

      QIODevice::ReadOnly should be QIODeviceBase::ReadOnly

      QIODevice::WriteOnly should be QIODeviceBase::WriteOnly

      ... etc, according to https://doc.qt.io/qt-6/qiodevicebase.html#OpenModeFlag-enum

      https://doc.qt.io/qt-6/qiodevice.html mentions only "WriteOnly flag" or "WriteOnly mode", but this should be explicit (QIODeviceBase::WriteOnly) and/or link to https://doc.qt.io/qt-6/qiodevicebase.html#OpenModeFlag-enum

      using the old names with qt6 throws

      error: incomplete type ‘QIODevice’ used in nested name specifier

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            milahu milan hauth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes