Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QOpenGLBuffer not found #5

Open
ThuyKhanh opened this issue Nov 14, 2022 · 3 comments
Open

QOpenGLBuffer not found #5

ThuyKhanh opened this issue Nov 14, 2022 · 3 comments

Comments

@ThuyKhanh
Copy link

Hello there,
I cloned this project into my PC, i opened this project with Qt creator 8.0.2 but I meet the issue as image below
Could you help me to resolve the project:
https://www.dropbox.com/s/n96oyi5qlfuz5lq/Untitled.png?dl=0

@8Observer8
Copy link

8Observer8 commented Nov 14, 2022

I think because this example was written using Qt5. Qt6 has moved OpenGL stuff into a separate module called opengl. Add it to the .pro file: QT += opengl and add lib: win32: LIBS += -lopengl32

@ThuyKhanh
Copy link
Author

ThuyKhanh commented Nov 15, 2022

Hello, tried 2 solutions:

  1. i added QT += opengl into underlay.pro, win32: LIBS += -lopengl32 into lib.pri
    2.I added QT += quick opengl LIBS += -lopengl32 into underlay.pro
    But the problem has still occurred

@8Observer8
Copy link

Maybe this example in Qt6 + QML will help you: https://doc.qt.io/qt-6/qtquick-scenegraph-openglunderqml-example.html Scroll to the very bottom of the page to download it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants