isl-org / isl-org/Open3D

How to wrap Scene Widget in WidgetProxy / proper way to remove SceneWidget from window

Open
#5,772 3 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### My Question

Hey together,
I currently work on a project where I add SceneWidgets to a window. In some scenarios I want to remove a specific Scene Widget from the window.
For other Widgets this can be easily done using a WidgetProxy but when I wrap a SceneWidget into a WidgetProxy, the Scene widget seems to work normal first and I can also navigate using the scroll wheel and the right mouse button but it becomes unusable as soon as I leftclick the SceneWidget (it looks like the whole scene disappears and only the background is left).
Before left clicking the widget:
![before_click](https://user-images.githubusercontent.com/59370581/206523127-b0b1cbc2-e419-4025-bc14-5b4a08ec3fb3.png)

After left clicking the widget:
![after_click](https://user-images.githubusercontent.com/59370581/206523124-f5942efe-7255-4a44-aae1-e0d7016ac781.png)

Anybody knows what is going on here and how to fix that?

If a WidgetProxy does not work for this: What is the proper way to remove a SceneWidget?

Any help is greatly appreciated!

Thank you in advance!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.