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

Error in qopenglfunctions doc snippet

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.0
    • 5.15.2
    • GUI: OpenGL
    • None

    Description

      In MyGLWindow example

      • Constructor definition doesn't contain the qualified class name
        EXPECTED:
        MyGLWindow::MyGLWindow(QScreen *screen) { ... }
        

        ACTUAL:

        MyGLWindow(QScreen *screen) { ... }
        
      • "QOpenGLWidget" is not a nonstatic data member or base class of class "MyGLWindow"
        ACTUAL:
        class MyGLWindow : public QWindow, protected QOpenGLFunctions
        {
            Q_OBJECT
        public:
            explicit MyGLWindow(QScreen *screen = nullptr);
        
            ...
        };
        
        MyGLWindow(QScreen *screen)
          : QWindow(screen), QOpenGLWidget(parent)
        {
            ...
        }
        

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            ugene UGENE Unipro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes