menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

NodeGui

A library for building cross-platform native desktop applications with Node.js and CSS.

Channels
Team

Communication with an external program

July 22, 2021 at 8:47am

Communication with an external program

July 22, 2021 at 8:47am
I plan to use NodeGui-Vue. So I've been looking at the API section, but I still don't know if it is possible to communicate with an external program.
What I need to do :
  1. Start the external program
  2. Write to its STDIN and read its STDOUT
  3. Close the program as soon as I've finished.
Is there a way to achieve this ?

July 22, 2021 at 9:01am
Ok, I think I need to implement QProcess, for NodeGUI-vue. I think I'll try to make an implementation.
By the way, how implementing a plugin for a QWidget child differs from a plugin from a QObject child such as for QProcess (which inherits QIODevice, inheriting QObject) ?