-
Notifications
You must be signed in to change notification settings - Fork 619
Crash using OpenGL widget #717
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
Comments
I have done a similar test by replacing the |
A colleague has tested it on Windows and cannot reproduce what happens on Ubuntu... |
Please have a look into #281 |
It's not the same as #281... I have a first solution for the chart using openGL; floating dock container are aliens on Linux. Non native widgets doesn't have the ritght winid and that has consequences on the SurfaceType that doesn't match the OpenGLSurface forcing the widget to be recreated while dropped back in the area. I am improving the example to fix the use of QOpenGLWidget and QOpenGLWindow included in a QWidget. I need more time to investigate the associated issues. Once all is working, I will propose you a MR with the example and the fix. |
Great - thank you very much. |
Hello, I finally achieved my OpenGL example and added several fix in the code. Do not hesitate to test it and send your remarks. Regards, |
Hello,
I am facing a different issues when handling OpenGL widgets inside the
ads::CDockWidget
.I have been able to reproduce a crash with a light example: https://github.com/zyrkiel/Qt-Advanced-Docking-System/tree/Add-OpenGl-example
Screencast.from.2025-02-20.12-16-59.mp4
What I try to do, in this example, is to undock then dock my
ads::CDockWidget
that handles an OpenGL widget (here a chart with an GPU accelerated series). In that case, the MainWindow crashes when docking back theCDockWidget
.(In my project, I am using
QVTKOpenGLStereoWidget
that creates a different situation where theCDockWidget
disappears if it is undocked from the area it has been added to)Here is the callstack:
My config is:
Qt: 6.7.2 (through vcpkg official ports but it should not matter)
ADS: 4.4.0
OS: Ubuntu 24.04
Debug & Release
The text was updated successfully, but these errors were encountered: