- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
  Not Evaluated                     
     - 
    None
 - 
    5.0.0, 5.0.1
 - 
    None
 
Hi,
When running the attached test "bug.cpp" I'm getting a SIGSEGV crash.
After debugging I've found that the "QCoreApplication::sendSpontaneousEvent(q, &e)" call in the file "qtbase/src/widgets/kernel/qwidget.cpp:5112" affects in the "paintEngine" Object in such a way that the ">d_func()>currentClipDevice" is no more accessible.Please check  the "before.png" and the "after.png" screenshots.
regards
Haithem.