Results 1 to 3 of 3

Thread: reading fprintf statements from console in qt

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

    Default reading fprintf statements from console in qt

    Hi,
    we have many fprintf statements in our project written in a c function. This c function is getting called by qt class. So the fprintf statements coming in console should be read line by line and show in QTextEdit in append mode. We are not using QProcess also, just calling a c function having many fprintf statements.
    Pls suggest me how can i read the each fprintf statement once it is written to console and the same text should be shown in QTextEdit in our project?
    Last edited by KrishnaKishan; 15th March 2007 at 06:10.

  2. #2
    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 fprintf statements from console in qt

    The only idea I have is to substitute fprintf with another method that'll write to a string.

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: reading fprintf statements from console in qt

    We are not using QProcess also, just calling a c function having many fprintf statements.
    Why don't/can't you use QProcess?

Similar Threads

  1. Reading from console using Qt 3.3.4
    By KrishnaKishan in forum Qt Programming
    Replies: 2
    Last Post: 13th March 2007, 10:30
  2. Reading console in qt
    By KrishnaKishan in forum Newbie
    Replies: 1
    Last Post: 12th March 2007, 15:41

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.