I have two applications: a Unity app and a Qt app. I need to include the Unity app content as an item in my Qt application.
What are the best way for doing so? Could we have some form of communication between the two via RTSP or UDP? Is there even a way to send the texture through UDP socket in Unity? Both applications will operate on the same machine. I tried to embed the unity app inside the qt app using the following code :
WId id = (WId)FindWindow(NULL, L"unityApp");
if (!id)
return -1;
QApplication a(argc, argv);
QWindow* window = QWindow::fromWinId(id);
window->requestActivate();
QWidget* widget = QWidget::createWindowContainer(window);
widget->setGeometry(0,0, 9300, 720);
widget->show();
but this solution uses qt widgets and i need it to be in the qml. I found another solution that i can get the textureId from unity and show it in my qt app but i have no idea if this is possible.
I'm using Qt6.5.3 on Windows.
You can try:
Hope this will help you. Thank you.