Skip to content

How to Embed pymadcad in PyQt5? #11

Discussion options

You must be logged in to vote

Hello and welcome there :)
Sure there is !
It's called View which is a widget that renders a Scene. which is typically what madcad.show does

  • madcad.rendering.View is a QWidget that can be integrated in pretty any Qt stuff. It even support touchscreen events ;)
  • madcad.rendering.Scene is a pure python object that manage the openGL stuff ( display object buffers and so on) and can be shared across instances of View. So the same scene exactly can be seen under different point of view.

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), pa…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Mehrshad-Ghorbanzadeh
Comment options

@jimy-byerley
Comment options

@Mehrshad-Ghorbanzadeh
Comment options

@jimy-byerley
Comment options

Answer selected by Mehrshad-Ghorbanzadeh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants