Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Creating a border on QOpenGLWidget
philm001 last edited by
I am new to QT and I am currently learning the library.
I have an openGL widget on my application and I was wondering if there is any way to place a boarder around my canvas?
The background of the canvas is white, the same background as my main window. I just need something to go around the canvas to have it stand out from the main window.
QFrame provides frames. Just set its property.
Are you using UI files?
If yes, place QFrame on form.
Place OpenGl widget in side QFrame
Right click QFrame (in free area), choose a layout.
Then the openGL widget has a frame.