[Qt] Fix build with latest Qt 5