On sexta-feira, 26 de julho de 2013 20:19:58, Alexander Syvak wrote:
> after calling w.show() there's method redefined void event_dlg::showEvent(
> QShowEvent *). In this method there's an exception thrown. The process does
> not terminate.

Please consider all event handlers and slots (when called via the signal-slot 
mechanism) as nothrow / noexcept. If you throw or fail to catch something, 
it's undefined behaviour.

>From that point on, your application is doomed. It will most likely crash. 
But, as you discovered, it may do something else.

Fix the problem by catching the exception.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to