This is fortunately disabled by default on Qt6, so we just have to check whether we are compiling with Qt6 or not.