[DF-4721] fix Qt5 Layer for MacOS