Dear all,
I would kite to know know can I notify errors from objects of classes derived from QObjects. Searching in the net, many times I've seen that if is suggested to overload the QCoreApplication::notify() member function (http://stackoverflow.com/questions/4...error-handling), but i don't like it much, I would prefer to notify errors by emiting signals. For example:
Qt Code:
{ Q_OBJECT Q_SIGNALS: Q_SLOTS: void do_something() { try { a = ...; <do something> } catch (std::exception &e) { } }To copy to clipboard, switch view to plain text mode
Does anyone uses this policy? How do you use it? One signal per exception type? How do you notify errors from Qt objects?
Thanks and Best Regards,
Joaquim Duran
Bookmarks