Results 1 to 20 of 53

Thread: How To Redirect The Console Output To A Text Browser/pop Up

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #24
    Join Date
    May 2006
    Posts
    68
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    10

    Default Re: How To Redirect The Console Output To A Text Browser/pop Up

    Dear JACEK,
    1.Thanks a lot for verifying the CJPEG.EXE.

    2.I am enclosing the extracts of the files main.cpp, steg.h, steg.cpp where cjpeg.exe is used. I have more or less incorporated the things which you have given but it does not work. Do I have to necessarily include “main.moc” .
    3. I believe I need to connect the readyReadStandardOutput() as you have done
    Qt Code:
    1. connect( _proc, SIGNAL( readyReadStandardOutput() ), this, SLOT( read() ) );
    To copy to clipboard, switch view to plain text mode 
    rest most of the things are same.
    Is the second connect also required
    Qt Code:
    1. connect( _proc, SIGNAL( finished(int, QProcess::ExitStatus) ), QCoreApplication::instance(), SLOT( quit() ) );
    To copy to clipboard, switch view to plain text mode 
    Could tell me how to adjust in the existing code.
    I am not able to figure out.
    Please have a look at my abridged code put in the zip file.
    Thanks
    Attached Files Attached Files

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. No output to console
    By Morea in forum Newbie
    Replies: 6
    Last Post: 1st November 2007, 22:51
  3. No console output in Mac OSX using Qt4
    By popoholic in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2006, 01:36

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.