title: Dynamic change of style from combobox value qml
body: <p>Everyone, I have made my own style and add this to <code>qml.qrc</code> then I calling it in <code>main.cpp</code>:</p>
  <pre><code>engine.addImportPath(&quot;qrc:/Styles&quot;);
  QQuickStyle::setStyle(Modern style);
  </code></pre>
  <p>Everything is working, but I've to make it dynamically changing from C++ code, and taking value from <code>combobox</code></p>
  <p><a href="https://i.stack.imgur.com/WVdfe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WVdfe.png" alt="enter image description here" /></a></p>
  <p>I've tried to add:</p>
  <pre><code>char str1[] = &quot;Basic&quot;;
  engine.rootContext()-&gt;setContextProperty(&quot;styling&quot;, *str1);
  QQuickStyle::setStyle(str1);
  </code></pre>
  <p>Like this it doesn't change in real-time, maybe someone helps me, thank you.
  P.S.: I need dynamically change style of app, which depends on the value of selected value in <code>comboBox</code>).</p>