How to Embed pymadcad in PyQt5? #11
Answered
by
jimy-byerley
Mehrshad-Ghorbanzadeh
asked this question in
Q&A
-
Hello and thanks for your extraordinary effort. Is it possible to define a widget for pymadcad in pyqt5 similar to matplotlib and use it in an application? |
Beta Was this translation helpful? Give feedback.
Answered by
jimy-byerley
Dec 7, 2021
Replies: 3 comments 4 replies
-
Hello and welcome there :)
So here is a typical example: # create application and window, normal stuff
app = QApplication(sys.argv)
window = QWidget()
# integrate a view on the 3D scene
view = View(Scene(objs_that_you_pass_to_show), parent=window)
# start everything, normal stuff
window.show()
app.exec() |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Mehrshad-Ghorbanzadeh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello and welcome there :)
Sure there is !
It's called
View
which is a widget that renders aScene
. which is typically whatmadcad.show
doesQWidget
that can be integrated in pretty any Qt stuff. It even support touchscreen events ;)View
. So the same scene exactly can be seen under different point of view.So here is a typical example: