Important: Please read the Qt Code of Conduct -

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));
    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.

Log in to reply