Change Q_WS_X11 to Q_OS_UNIX for Qt5 compatibility