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. #29
    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

    The code now looks like
    Qt Code:
    1. s2 << "-steg" << "coded.txt" << "-q" << ui.compressionspinBox->text() << "cleanimage.ppm" << ui.jpeglineEdit ->text() ;
    2. //QProcess *_proc;
    3. _proc = new QProcess( this );
    4. _proc->setReadChannelMode( QProcess::MergedChannels );
    5.  
    6. connect( _proc, SIGNAL( readyReadStandardOutput() ), this, SLOT( read()));
    7. connect( _proc, SIGNAL( started() ), QApplication::instance(), SLOT( aboutQt() ) );
    8.  
    9. // connect( _proc, SIGNAL( finished(int, QProcess::ExitStatus) ), QCoreApplication::instance(), SLOT( quit() ) );
    10. _proc->start(("cjpeg"),s2);
    11.  
    12. //read();
    To copy to clipboard, switch view to plain text mode 


    Now I get the About QT inboth the case that is when there would be error message and when there is no error message.
    I know that the program has worked fine ( data has been succesfully hidden ) after seeing the concerned file and classicaly speaking noerroror otherwise any message is not given on thecommand console hence nothing should come in the message pop also.But The About QT screen does come everytime.
    The screen snapshot is attached as zip.
    What do you say??
    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.