Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Open a process and embed in a widget
QtWS25 Last Chance

Open a process and embed in a widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vabica
    wrote on 18 Jul 2017, 22:52 last edited by
    #1

    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);
        calc->start("calculator");
        ui->setupUi(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.

    R 1 Reply Last reply 19 Jul 2017, 07:11
    0
    • V vabica
      18 Jul 2017, 22:52

      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);
          calc->start("calculator");
          ui->setupUi(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.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 19 Jul 2017, 07:11 last edited by
      #2

      @vabica
      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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • V Offline
        V Offline
        vabica
        wrote on 24 Jul 2017, 13:52 last edited by
        #3

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

        1 Reply Last reply
        0

        2/3

        19 Jul 2017, 07:11

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved