Skip to content

Conversation

@palszasz
Copy link

The Canvas class is very handy to render custom OpenGL content in the application. Since it's a widget, it can have children as well. However the content is rendered on top of the children, which makes the usage of the child widgets less idea.

With this patch the rendering order is changed, so the children will be rendered on top of the custom content. This allows e.g. adding a toolbar (e.g. tool selection) on top of a 3D view in an application.

Added a sample to example1 as well (though just a simple label)

SCR-20250612-iqui

Also added a minor change to .gitignore to ignore the .cache folder (which seems to be created by Visual Studio Code)

palszasz and others added 3 commits April 28, 2025 14:07
I think this was created by IntelliSense in Visual Studio Code.
Add a child widget (a label) to an ImageView instance, demonstrating
that it will render on top of the image content.
@wjakob wjakob force-pushed the master branch 9 times, most recently from 654b8a5 to 1cbff2e Compare August 29, 2025 18:29
@wjakob wjakob force-pushed the master branch 18 times, most recently from 6497f59 to 2f2e29f Compare September 1, 2025 22:03
@wjakob wjakob force-pushed the master branch 7 times, most recently from c75898b to 1bbd038 Compare September 6, 2025 21:26
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

Successfully merging this pull request may close these issues.

2 participants