我想在一些小部件布局中将 QQuickView 插入到我的旧 qt4 应用程序中。如何在单个应用程序中混合使用 QWidget 和 QWindow?
有例子吗?
最佳答案
这已在 Qt 5.1 中修复。引用 [1]
To remedy this problem, Qt 5.1 introduces the function QWidget::createWindowContainer(). A function that creates a QWidget wrapper for an existing QWindow, allowing it to live inside a QWidget-based application. Using QQuickView or QOpenGLContext together with widgets is now possible.
[1] https://www.qt.io/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer
关于c++ - 如何将Window放入QWidget布局(Qt5),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13198367/