Results 1 to 6 of 6

Thread: Shell command from Qt 4.5.2 by QProcess

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Shell command from Qt 4.5.2 by QProcess

    Quote Originally Posted by Rajeshsan View Post
    Hi Everyone.........
    Plz can you send me small code just it has to send some command to CLI.
    [...]
    proc=new QProcess(this);
    proc->start("VKB -qws");//Actually i want to give commands like ls -l or cd .. which should be passed to CLI and act on that. but im not finding options in proc-> . Plz can you send me a small code to interact with CLI.
    Before begging for code, I would recommend using the CODE tags and read the docs regarding QProcess and learn how the right syntax would look like.

  2. #2
    Join Date
    Sep 2009
    Posts
    39
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Shell command from Qt 4.5.2 by QProcess

    Hi.... I have sent full code. So plz can you see the code then you can suggest me. how to pass arguments for Shell from Qt. I need to develop just a LineEdit. In LineEdit what i type like command "ls -l". It should appear on CLI then it should display the list of Folders and directories. I need just simple application like this or plz send simple code to do it.

Similar Threads

  1. QProcess & linux shell characters
    By Ti_Thom in forum Qt Programming
    Replies: 4
    Last Post: 21st December 2009, 10:01
  2. qprocess and shell
    By GuL in forum Qt Programming
    Replies: 1
    Last Post: 12th February 2009, 05:47
  3. Detect First QProcess finished in a group and kill other
    By Davidaino in forum Qt Programming
    Replies: 3
    Last Post: 11th July 2008, 12:53

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.