title: Can i run an .exe file in pyqt?
body: <p>I want to put an .exe file in pyqt which is designed using a Qt designer. I have managed to show a video captured by openCV. However this time the video capturing file is converted to an executable file. I want to run the .exe file and show the output inside the pyqt UI. I have tried using os module in opening an executable file wherein it opens it but it is not inside the created Qlabel widget. Is there a way i can put it inside the UI? Thank you  </p>
  
  <p>Update: Ive done research but all i see is Qt in C++</p>
  
  <pre><code>Widget::Widget(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::Widget)
  {
      ui-&gt;setupUi(this);
  
      QWindow *window = QWindow::fromWinId(125829124);
      QWidget *widget = QWidget::createWindowContainer(window);
      widget-&gt;setParent(this);
      QVBoxLayout *layout = new QVBoxLayout();
      layout-&gt;addWidget(widget);
      this-&gt;setLayout(layout);
  }
  </code></pre>
  
  <p>Ive tried to use this code but still the window is not inside the UI. </p>
  
  <pre><code>class Program(QMainWindow):
  def __init__(self):
      super().__init__()
      exePath = "/home/liva/app.exe"
      subprocess.Popen(exePath)
      hwnd = 3800003 #the window id of the app.exe
      self.window = QWindow.fromWinId(hwnd)
      self.setWindowFlags(Qt.FramelessWindowHint)
      self.widget = QWidget.createWindowContainer(self.window,self)
      self.widget.resize(300, 300)
      self.widget.move(400, 300)
      print(self.window.parent())
      layout = QVBoxLayout()
  
      layout.addWidget(self.widget)
      self.setLayout(layout)
  
      self.setGeometry(100, 100, 900, 900)
      self.setWindowTitle('UI')
      self.show()
  </code></pre>