Unsolved Unity application integration into QWidget
-
Hi,
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));
UnitySceneWindow->setFlags(Qt::FramelessWindowHint);
QWidget *widget = QWidget::createWindowContainer(UnitySceneWindow);
this->layout()->addWidget(widget);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.
-
Hi Nisanth,
could you explain better how to integrate Unity 3D in QT?
I need to do that but I am super new in Qt and I don't know where to start. Thanks in Advance