Results 1 to 2 of 2

Thread: Redirecting qDebug()

  1. #1
    Join Date
    May 2006
    Posts
    58
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Redirecting qDebug()

    Is there any way that I could change the behavior of qDebug()? What I would like to do is open up a file at the beginning of my program, and somehow point qDebug() to it such that instead of writing to stdout, it dumped to my text file.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

  3. The following user says thank you to jacek for this useful post:

    hardgeus (23rd December 2006)

Similar Threads

  1. qDebug() under Windows
    By jlbrd in forum Qt Programming
    Replies: 10
    Last Post: 20th March 2007, 07:10
  2. Disable qDebug output
    By the_bis in forum Qt Programming
    Replies: 7
    Last Post: 30th November 2006, 20:14
  3. qDebug macro substitution
    By the_bis in forum Qt Programming
    Replies: 2
    Last Post: 15th November 2006, 08:31
  4. qDebug() output
    By Doug Broadwell in forum Newbie
    Replies: 1
    Last Post: 1st November 2006, 21:54
  5. qdebug
    By drkbkr in forum Qt Programming
    Replies: 12
    Last Post: 29th September 2006, 15:26

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.