Octave plot from Qt C++ application

前端 未结 2 1480
星月不相逢
星月不相逢 2021-01-13 13:55

I have a QT C++ application that runs the Octave program using QProcess. I am able to communicate with it by reading the standard output/error and writing to it\'s standard

2条回答
  •  情话喂你
    2021-01-13 14:29

    Octave, like Matlab, can be run in batch mode to perform computations without graphical UI. I assume that Octave detects that it is not run from an interactive session, and therefore automatically goes into batch mode. You would expect Octave to suppress graphical output (e.g. gnuplot output) when being in batch mode.

    Try to force Octave into interactive mode by using the --interactive command line option: http://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html

提交回复
热议问题