@VRonin I don't doubt that Visual Studio can do this, my poins are

qmake doesn't have native way to set source-specific flags, you need to create your own custom target with all gory details of building C++ file, so it's much easier to move it into library I don't know if mixing EH flags in the same binary is reliable with MSVC