Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unity application integration into QWidget
Nisanth last edited by
I am currently working on an application where I plan to embed at unity application inside a QWidget. I am going with unity as I already have a 3D scene in unity which I can reuse.
I am able to embed it using the following way-
QWindow *UnitySceneWindow = QWindow::fromWinId(reinterpret_cast<WId>(m_unityHandle));
QWidget *widget = QWidget::createWindowContainer(UnitySceneWindow);
Everything works fine. The communication between the unity scene and the QT part is done via a namedpipe. The only issue which I am facing is that whenever the unity scene is shown, it interferes with the scrolling in another widget in the main window using touch gestures. the scrolling works fine when I use a mouse wheel to scroll. Any idea why this is happening?
Thanks is Advance.