View Full Version : How to ensure I do not use obsolete functions?

11th September 2011, 06:35

I have code using some Qt deprecated classes/functions, like QHttp and Q3ListBox. I would like to convert everything. Besides removing qt3support option, how could I ensure that my code does not use deprecated classes/functions, or is Qt 5 complying? Is there a #define or something like that?

Thank you!

11th September 2011, 11:00
My opinion: using deprecated functions is perfectly ok in old code. Why convert something that works? You'll just introduce bugs in the conversion process.

A practical criteria might be: if only the latest headers and libraries are used, if the code links (and program works - of course), it is ok.

15th September 2011, 17:23
I want to ensure that my program will compile for future versions of Qt, like Qt 5. Also, Qt team will probably recommend to use new code.