title: QML - Cannot assign to non-existent property "style"
body: <p>I'm using Qt 5.10.1 with Qt Creator 4.5.1 and the <strong>style</strong> property is never available in elements.</p>
  
  <p>For example, as shown here <a href="http://doc.qt.io/qt-5/qml-qtquick-controls-styles-buttonstyle.html" rel="noreferrer">ButtonStyle QML Type</a> , I would like to do:</p>
  
  <pre><code>Button {
      text: "A button"
      style: ButtonStyle {...}
  }
  </code></pre>
  
  <p>But, I get the error:</p>
  
  <blockquote>
    <p>Cannot assign to non-existent property "style"</p>
  </blockquote>
  
  <p>I tried with a rectangle, progressbar and I get the same error.</p>
  
  <p><strong>Edit #1:</strong></p>
  
  <p>I do have all these imports. If the import was missing, I would get the error on <strong>ButtonStyle</strong> , but the error is on <strong>style</strong>.</p>
  
  <pre><code>import QtQuick 2.2
  import QtQuick.Controls 2.3
  import QtQuick.Dialogs 1.0
  import QtGraphicalEffects 1.0
  import QtQuick.Shapes 1.0
  import QtQuick.Layouts 1.3
  import QtQuick.Controls.Styles 1.4
  </code></pre>