Results 1 to 3 of 3

Thread: Reading from console using Qt 3.3.4

  1. #1
    Join Date
    Mar 2007
    Posts
    5
    Qt products
    Qt3
    Platforms
    Windows

    Default Reading from console using Qt 3.3.4

    I want to read the console statements ( i.e. both cout and printf staements ) as soon as it is printed in console using Qt 3.3.4.
    Coud you suggest me how to do it?

  2. #2
    Join Date
    Sep 2006
    Posts
    339
    Thanks
    15
    Thanked 21 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Reading from console using Qt 3.3.4

    Quote Originally Posted by KrishnaKishan View Post
    I want to read the console statements ( i.e. both cout and printf staements ) as soon as it is printed in console using Qt 3.3.4.
    Coud you suggest me how to do it?
    Add CONFIG+=console to your project file and rerun qmake. This might help

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Reading from console using Qt 3.3.4


Similar Threads

  1. Replies: 8
    Last Post: 28th January 2015, 09:45
  2. Reading console in qt
    By KrishnaKishan in forum Newbie
    Replies: 1
    Last Post: 12th March 2007, 15:41
  3. How to run a console program "silently"?
    By fullmetalcoder in forum Qt Programming
    Replies: 9
    Last Post: 23rd July 2006, 10:03
  4. Console apps in Kde Qt
    By peedarp in forum Qt Programming
    Replies: 5
    Last Post: 1st February 2006, 10:43
  5. qt without console window
    By jh in forum Qt Programming
    Replies: 3
    Last Post: 28th January 2006, 20:01

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.