The Q_WS_MAC Window Server macro is no longer defined in Qt 5: https://doc.qt.io/qt-5/macos-issues.html#compile-time-flags.
test is a reserved name. Adapt it to match the changes done. src directory renamed to example. src was a misleading name.