[Interest] process setting on QWidget - how

Sujan Dasmahapatra yellowlemontree0821 at gmail.com
Tue Feb 18 03:13:59 CET 2020


////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QProcess *process = new QProcess();
QStringList progargs;
progargs << "/C" << "start C:\\ProgramData\\Microsoft\\Windows\\myapp.exe
dicom:get C:\\Slicer\\Testing\\Data\\Input\\DWIDicom\\MR_0004_0028.dcm";
process->start("C:/windows/system32/cmd.exe", progargs);
if (process->waitForFinished())
{
return;
}
QWindow *appWindow = QWindow::fromWinId(process->processId());
appWindow->setFlags(Qt::FramelessWindowHint);
_patient_gui->widget->createWindowContainer(appWindow);

/////////////////////////////////////////////////////////////////////////////////////////////////////////////


This is the code snippet, with which I am trying to launch an external
application and setting it  on a  QWidget. But it is not working.

Can I get some help on this, can you check what is wrong in this code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200218/2d9e5b0c/attachment.html>


More information about the Interest mailing list