I was going to use QML_FOREIGN for its intended purpose. I wanted to register an foreign class as a QML element. However, this has no effect.
Experiments have shown that it works for classes that are part of a project. For classes from an library it does not work. Why? After all, that’s the point of QML_FOREIGN…