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

Error in qopenglfunctions doc snippet

XMLWordPrintable

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

      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)
        {
            ...
        }
        

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes