How create mesh
-
https://doc.qt.io/qt-6/qtwidgets-graphicsview-elasticnodes-example.html
this may be one way to do it. -
The problem is inadequately specified, what did you expect?
OpenGL Examples from the Qt OpenGL module might be more your style