[Development] QProcess app to set on QWidget

Joerg Bornemann Joerg.Bornemann at qt.io
Tue Feb 18 09:03:20 CET 2020


On 2/18/20 3:26 AM, Sujan Dasmahapatra wrote:

> QWindow *appWindow = QWindow::fromWinId(process->processId());

That cannot work. QProcess::processId() returns, well, a process id, not 
a window handle. You will have to write native code that enumerates all 
window handles of the process and if there's more than one pick the 
right one.


Cheers,

Joerg

P.S. This is the mailing list for development of Qt.
For this kind of question, use 
https://lists.qt-project.org/listinfo/interest please.


More information about the Development mailing list