Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QT process for matlab

    General and Desktop
    2
    4
    946
    Loading More Posts
    • 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.
    • H
      habbas33 last edited by

      hi I want to use simple QT process class to run matlab... but it is not working

      @bool MainWindow::start()
      {
      proc.start("matlab.exe");
      return proc.waitForStarted();

      }
      void MainWindow::write()
      {
      QByteArray script = "clear;\n"
      "x = [10 20 20];\n"
      "y = sin(x);\n"
      "y\n";

      proc.write(script);
      

      }@

      when I run matlab opens but can not write ...

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What error are you getting from QProcess ?

        On a side note, It's Qt, QT stands for Apple QuickTime

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • H
          habbas33 last edited by

          I get no response... no error... nothing happens

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Did you check what QProcess::error() returns ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • First post
              Last post