I think createQmlObject is a larger overkill but anyway I didn't mean to use createComponent. You can declare a component inline in the original QML document and just instantiate it when needed. See the docs on Component element.
By the way, the title doesn't suggest you want to do anything dynamically.
Bookmarks