Qt widgets (labels and buttons) inside/on top of viewer.

Hello,

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's picture
Marko Knöbl's picture

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: 
Daniel Park's picture

Thank you sir!

Marko Knöbl's picture

You're welcome! I'm happy I could help!