I am currently on Qt5, and want to emulate Qt4's X11EmbedWidget, which has been removed. All sources I can find online point me to using QWindow::fromWinId
to make the native window into a QT window, then using QWidget::createWindowContainer()
to put the window into another.
I am creating the child process using fork and execve, like so
pid_t pid = fork();
if (pid == 0) {
//child
execv("./application.bin", NULL);
exit(0);
} else {
//parent
//get window ID
//use createWindowContainer
}
i just can't seem to get the window ID with this. I found this post, but it gives an empty list every time. Is there any way to do this directly from execv() or fork()?