Results 1 to 6 of 6

Thread: Using system() with gnuplot in qt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Using system() with gnuplot in qt

    Read about using QProcess.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 94 Times in 86 Posts

    Default Re: Using system() with gnuplot in qt

    Every system call launches a new shubshell and runs the provided command in that shell. If you want to use system() in this way, you'll have to combine your shell commands into one, something like:

    Qt Code:
    1. string cmd = "gnuplot; set term jpeg; ... ;exit";
    2. system(cmd);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. coordinate system
    By Wojtek.wk in forum Newbie
    Replies: 7
    Last Post: 12th April 2010, 13:47
  2. Getting System Information
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2008, 10:37
  3. The coordinate system
    By avis_phoenix in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2008, 12:16
  4. system in Qt
    By jaca in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 15:56
  5. Running QT3 and QT4 on the same system?
    By milonguero in forum Installation and Deployment
    Replies: 2
    Last Post: 26th April 2007, 18:38

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.