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

Error in qopenglfunctions doc snippet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.15.2
    • Fix Version/s: 6.0
    • Component/s: GUI: OpenGL
    • Labels:
      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

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            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