Use the proper check for Qt 5.11
(cherry picked from commit 866e5aad29b699e44d20f9a7404a10f4ac3cc440)