20.02.2020, 18:38, "Sujan Dasmahapatra" <yellowlemontree0...@gmail.com>: > hi friend > > I am running an external app, which I want to fit onto my QScrollArea, for > this I am writing code like this. > > // launch weasis > QProcess *process = new QProcess(); > process->start("./viewer-win32.exe"); > if (process->waitForFinished()) > { > return; > } > > QWindow *window = QWindow::fromWinId(211812356); > window->setFlags(Qt::FramelessWindowHint); > _patient_gui->scrollArea_1->setWidget(QWidget::createWindowContainer(window)); > > But how can I get the wind id? it is hard coded here, is there any way to get > the id from process id. > > any help is highly appreciated.
Hello, It seems like your question has nothing to do with development of Qt itself, so it would be more appropriate to use "interest" mailing list. As for your question, you can get id by using methods like QWindow::winId() or QWidget::effectiveWinId() If subject window is not managed by Qt, you have to use native API. -- Regards, Konstantin _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest