Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unity application integration into QWidget
Forum Updated to NodeBB v4.3 + New Features

Unity application integration into QWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nisanth
    wrote on 12 Aug 2020, 07:13 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DiegOne
      wrote on 29 Jul 2021, 13:00 last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved