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

QQuick3D::idealSurfaceFormat should mention only used for OpenGL

    XMLWordPrintable

Details

    • af8a68ddb (dev), 8448b5267 (6.9)
    • framework-content 4, framework-content 5

    Description

      https://doc.qt.io/qt-6/qquick3d.html#details

      On this page, it mentions it needs to haveĀ 
      QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4));
      for the extra OpenGL context initialization.

      I suggest also mentioning clearly this has no effect when using other backends like Direct3D.

      or add a link to https://doc.qt.io/qt-6/qtquick3d-requirements.html#opengl-specifics

      I think having important information outside of the API introduction page but on a separate page is not good.

      make users have a clear understanding of the use case when you need to put this in the main.cpp.

      or maybe

      #ifndef QT_NO_OPENGL
        QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4));
      #endif 

      Attachments

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

        Activity

          People

            javyas Jaishree Vyas
            jiu shanheng jiu
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes