Why does QT use so few exceptions?
-
It's a good place to change major architecture decisions without harm current devs.
From a simplistic point of view (without thinking about continuous improvement of current apps, kde, nokia, market, etc), who doesn't want Qt 5? :) -
MTK358: I do not know of any plans, that does not mean that nobody else is doing planning;-)
-
s.frings: Yes, there is no reason not to use exceptions in your own programs. I do not know whether it is a good idea for consistency reasons: I prefer not having to switch between exception/non-exception code, but that is just a matter of taste.
-
What about QSqlError ?
I find it annoying calling lastError() every time I execute a SQL query. I can't think of a better place to use exceptions instead of error codes. Not to mention that exceptions are thread-safe. -
Some of them are explained "here":http://www.parashift.com/c++-faq-lite/exceptions.html
And keep in mind:
there is NO one size fits all! Exceptions might work wel for one case, but not for the other. -
You'll have to wait at least until Qt 5 comes around.
All releases of the Qt 4 series will stay source and binary compatible. Switching to using exceptions is a far too big change. Maybe it will come sometimes, but don't expect anything. There aren't even rumors about a timeline of Qt 5, even less abut exceptions...