Well, that wasn't specifically about this file. You have a lot of defines that are just there for include path purposes. My suggestion was to use -Iiodata-qt5 and just #include <validator> directly.

But that's not strictly necessary.