Results 1 to 5 of 5

Thread: Qt debugging

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt debugging

    Hi,
    I need some advice on how to debug things Qt.
    I could run a debugger, but I often prefer to see things printed on screen.

    If I would like to print things from my Qt program, to the console in Linux, how do I do this?
    Can I do anything similar in windows, or what would you suggest I do in windows?

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Qt debugging

    In linux just use printf or qDebug.
    In windows use the same but in project properties( actually in Visual Sudio, i dont know where is set in MingW) Linker->System set in Console (/SUBSYSTEM:CONSOLE)
    a life without programming is like an empty bottle

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

    Morea (24th March 2006)

  4. #3
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt debugging

    Thanks, and if someone knows about MingW, please tell us.

  5. #4
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt debugging

    When speaking of debugging, is there a way of making the compiler (gcc) to warn about connections beeing made at compiletime that is between signals and slots that doesn't exsist?

    it doesn't react on

    connect(object, SIGNAL(obviouslymissspeledSignal()),....)

  6. #5
    Join Date
    Jan 2006
    Posts
    105
    Thanks
    21
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt debugging

    connect returns a boolean; false if the connection is not possible.

Similar Threads

  1. Problem debugging Windows QT App w/ GDB
    By JDTexas in forum Qt Programming
    Replies: 4
    Last Post: 2nd March 2008, 08:02
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  4. Debugging with gdb
    By SteM in forum Newbie
    Replies: 4
    Last Post: 9th August 2007, 14:40
  5. Macro used for debugging
    By sunil.thaha in forum General Programming
    Replies: 11
    Last Post: 30th March 2007, 17:32

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.