Daniel Neander Mon, 12/23/2013 - 11:52 Forums: Other usage issuesHello, I want to add things like labels and buttons on top or within the viewer. (I am using QT) Has anyone done this before, and how did you do it? Thanks! jelle Fri, 12/27/2013 - 22:33 What about using Visual3d_Layer? http://dev.opencascade.org/doc/refman/html/classVisual3d__Layer.html#a53... Log in to post comments Marko Knöbl Tue, 12/31/2013 - 15:54 You can do that with any Qt widget by adding a child widget without adding it to the layout and positioning it manually. Here's a short example written in Python. You can see the result in the attached picture. ("viewer" is the 3D view of the application) a = QPushButton('TEST', viewer) a.move(200, 200) a.show() Attachments: viewer-overlay-qt.jpg Log in to post comments Daniel Park Tue, 12/31/2013 - 16:30 Thank you sir! Log in to post comments Marko Knöbl Thu, 01/02/2014 - 21:20 You're welcome! I'm happy I could help! Log in to post comments
Fri, 12/27/2013 - 22:33
What about using Visual3d_Layer?
http://dev.opencascade.org/doc/refman/html/classVisual3d__Layer.html#a53...
Tue, 12/31/2013 - 15:54
You can do that with any Qt widget by adding a child widget without adding it to the layout and positioning it manually.
Here's a short example written in Python. You can see the result in the attached picture. ("viewer" is the 3D view of the application)
a = QPushButton('TEST', viewer)
a.move(200, 200)
a.show()
Tue, 12/31/2013 - 16:30
Thank you sir!
Thu, 01/02/2014 - 21:20
You're welcome! I'm happy I could help!