Important: Please read the Qt Code of Conduct -

Open a process and embed in a widget

  • HI guys, I was wondering if it's possible to open a process with QProcess and embed his gui in a widget?

    MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
        QProcess *calc = new QProcess(this);

    It's going to open the calculator, but I wanted to embed on my application (widget, or whatever) instead of opening as a separated process.

    I know that it's possible cause there are a few video players like mplayer that people embed using Qt, but I have no idea how to do that with other process.

  • Moderators

    no in general thats not possible.
    Unless the (specific) process also exposes a library to use in your application.
    The only other possibility i see is to use QAxWidget to embed a ActiveX control under MS Windows.

  • I though so, thank you very much @raven-worx

Log in to reply