Qt5:  Q_WS_* macro were deprecated, replace by QT_OS_*

in particular, QT_WS_X11 is no longer defined