this logic is backwards, should be `if not`, or `'QT_API' not in...`.