QTimer may not be an incomplete type as it is used as a member variable. Add the #include to fully define the type. This problem shows up when this header is included in a context that doesn't already have QTimer included -- CMake 3.11 exposes that accidentally.
Upstreamed from FreeBSD ports.