Qt5 version of get from macros.h