Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 qMainWindow 中嵌套一个 opengl 窗口并与之连接。现在我只知道使用 WinId 来获取指向我的 qwidget 的指针,请有人给我一些建议。谢谢
我建议通常的方法。使用作为父级传递的 QMainWindow 实例创建 QGLWidget 实例。如果要将其放入某个布局中,请addWidget在 QGLWidget 的实例上使用布局实例的方法。
addWidget