
15 Jun
2009
15 Jun
'09
6:59 p.m.
Felipe Magno de Almeida wrote:
How do you handle exceptions in Qt?
I don't. Cppgui is exception neutral. Do you foresee a problem? I must be honest, I haven't considered this at all.
Exceptions are a serious matter. Qt uses exceptions alright (most notably from usage of new), but is not aware of it and does as if it doesn't. It is perfectly fine not to use exceptions, but if you do you have to stick to specific coding standards that are in contradiction with the recommended practice of using exceptions and RAII. Qt lives in the no-exceptions make-believe land, which is really the worst of both worlds. I am personally quite against a library that would have the same deficiencies.