Warning, /sdk/clazy/docs/checks/README-wrong-qevent-cast.md is written in an unsupported language. File is not indexed.
0001 # wrong-qevent-cast 0002 0003 Warns when a `QEvent` is possibly cast to the wrong derived class via `static_cast`. 0004 0005 Example: 0006 ``` 0007 switch (ev->type()) { 0008 case QEvent::MouseMove: 0009 auto e = static_cast<QKeyEvent*>(ev); 0010 } 0011 ``` 0012 Only casts inside switch statements are verified.