OpenGL Wireframe + Qt GUI?
Unsolved
General and Desktop
-
The project:
Create a Qt GUI with an OpenGL context that allows plotting triangulated geometries that are read in from file and then plot colored shapes onto the geometry based on dataI worked from the example included in Qt cube: https://doc.qt.io/qt-6/qtopengl-cube-example.html
So far, I have been able to get the 3d geometry to plot from file, and I have been able to draw Qt GUI elements on top of the OpenGL window that is drawn by the example, but I am stuck on two problems:
- How to make the GUI elements in their own area above the OpenGL window (but still in the same application window in Windows)?
- How to switch from OpenGL rendering texture (cube.png included in the example) to rendering a wireframe of whatever geometry is loaded? (Commenting out the texture lines just results in nothing visible in the window, ie a black window)
I can provide my modified code, but the changes I am asking about should be able to be made on the base example code and just transposed over to my working code.
Any help or suggestions on other ways to accomplish this would be greatly appreciated!