title: MySQL Driver not loaded on Qt
body: <p>Trying to connect to MySQL using</p>
  
  <pre><code>QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
  </code></pre>
  
  <p>gives me the</p>
  
  <p><strong>Driver not loaded error</strong></p>
  
  <p>Reading the other questions and answers did not help me because they have qt4 instead of 5 that I am using, and they had to build the drivers themselves. I do have the drivers though </p>
  
  <p><img src="https://i.stack.imgur.com/1xNHA.png" alt="qtdrivers"></p>
  
  <p>And I also did load the path in the pro file here</p>
  
  <p><img src="https://i.stack.imgur.com/ftH09.png" alt="qtprofile"></p>
  
  <p>So why is this happening? Should I try and compile the drivers myself as suggested in some other questions?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I also did make sure to use MySQL 32bit. </p>