Improve QtDeclarative detection.