Cannot get QWindow::fromWinId to work properly
问题 My Qt 5.9 program (on X11 Linux) launches other applications, using QProcess . I would like to have control over windows these applications spawn, so I obtain their winId value and use QWindow::fromWinId to get a QWindow instance. The problem is these instances are invalid and do not represent the window they are supposed to. If I check the winId values using xwininfo , the correct information is returned, so I know they are good. What am I doing wrong? Edit: An example won't help much, but