title: How to draw a QR code with Qt in native C/C++
body: <p><strong>QR in Qt</strong></p>
  
  <p>As a companion question to <a href="https://stackoverflow.com/questions/42603664/how-to-scan-for-qr-codes-with-qt-in-native-c-c">How to scan for QR codes with Qt</a>, I want to know how to draw a <a href="http://en.wikipedia.org/wiki/QR_code" rel="noreferrer">QR code</a> from native C/C++ code in my Qt5 based desktop app, but I could not find an example of how to do this.</p>
  
  <p>I know <a href="http://code.google.com/p/qtqr/" rel="noreferrer">QtQR</a> exists, but it has dependencies on <a href="https://code.launchpad.net/~qr-tools-developers/qr-tools/trunk" rel="noreferrer">python-qrtools</a> which in my opinion kind of defeats the purpose of using Qt in the first place. I want a nimble, efficient and dependency-free solution that will compile with my app wherever I decided to take it.</p>
  
  <p>How can I do that?</p>