Hello sinefine,

What I think your problem might be is that although your file "exit24.png" might be located in the folder that the source code is in, when you run the program in "Debug" or "Release" mode, your file does not exist in the folder that it is being compiled to. You need to use a Qt Resource file, add this file into the Qt Resource file and then make reference to the path of the Qt Resource file.

QAction(QIcon(':/pathwheremyresourcefilestoresthisfile/exit24.png'),'Exit',w)