PDA

View Full Version : Qt debugging



Morea
24th March 2006, 09:07
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?

zlatko
24th March 2006, 09:18
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)

Morea
24th March 2006, 09:22
Thanks, and if someone knows about MingW, please tell us.

Morea
24th March 2006, 10:32
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()),....)

niko
24th March 2006, 19:28
connect returns a boolean; false if the connection is not possible.