Results 1 to 2 of 2

Thread: QIODevice::read (QProcess): device not open

  1. #1
    Join Date
    Jan 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QIODevice::read (QProcess): device not open

    QProcess process;
    process.execute("vi new.txt");
    process.waitForFinished(-1);
    QByteArray output=(process.readAllStandardOutput());
    QByteArray output1(process.readAllStandardError());


    when i execute the above code , i am getting the output in the linux terminal but output is not being read .
    It is appearing like "QIODevice::read (QProcess): device not open"
    Last edited by sagarsadhu; 2nd January 2017 at 09:23.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QIODevice::read (QProcess): device not open

    Hint: QProcess::execute() is a static method.

    Cheers,
    _

Similar Threads

  1. Replies: 1
    Last Post: 24th October 2016, 21:15
  2. QIODevice::open: File access not specified
    By Clausen in forum Newbie
    Replies: 2
    Last Post: 19th April 2015, 19:58
  3. Use QUdpSocket as a QIODevice (read, readline, write)
    By salcin in forum Qt Programming
    Replies: 0
    Last Post: 9th April 2014, 21:17
  4. Using QIODevice to read a GPS filenode?
    By hickscorp in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 3rd December 2007, 22:32
  5. QIODevice read()
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 00:29

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.