title: Qt/QML qmlRegisterType vs. setContextProperty (difference)
body: <p>In Qt/QML application (this code usually resides in <code>main.cpp</code> of QtCreator project), what is the difference between following ways of exposing C++ class to QML:</p>
  
  <pre><code>qmlRegisterType&lt;UePeopleModel&gt;("com.example",
                                 1,
                                 0,
                                 "UePeopleModel");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>engine.rootContext()-&gt;setContextProperty("uePeopleModel",
                                           uePeopleModel);
  </code></pre>
  
  <p>?</p>