Set CullFace to Front and Back in Qt3D in Python via PySide2
问题 I wanted to set QCullFace to FrontAndBack and that is why I wrote this: from PySide2.Qt3DRender import Qt3DRender cull_face = Qt3DRender.QCullFace() cull_face.setMode(Qt3DRender.QCullFace.FrontAndBack) render_pass = Qt3DRender.QRenderPass() render_pass.addRenderState(cull_face) The code above should set CullFace globally. But it does not. What did I do wrong? 回答1: I assume that the python binding does not change how Qt works in C++. So you probably have a Qt3DWindow somewhere (unless you