Replace the loop macro with while (true). The #define caused problems for Qt.
Attach a file by drag & drop or click to upload