title: Inserting Multiple Rows In A SQLITE Database Using qt
body: <p>Hello I am trying to insert multiple rows (two in this case) into a SQLITE database using qt 5.4. I have been following the documentation but the program has been crashing and I can not explain why. </p>
  
  <pre><code>query_Invoice.prepare("INSERT INTO Invoice VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
  QVariantList Invoice_Number, Date_Time, Total_Purchased, Qty, Description, Product_CODE, Unit_Price, Total_Price, Goods_Total, VAT_Invoice, Company_ID;
  Invoice_Number &lt;&lt; 1 &lt;&lt; 2;
  Date_Time &lt;&lt; 1776-07-04 &lt;&lt; 1776-07-05;
  Total_Purchased &lt;&lt; 2 &lt;&lt; 3;
  Qty &lt;&lt; 50 &lt;&lt; 60;
  Description &lt;&lt; "Paint" &lt;&lt; "Drill" &lt;&lt; QVariant(QVariant::String);
  Product_CODE &lt;&lt; "EEFF2" &lt;&lt; "EEF23" &lt;&lt; QVariant(QVariant::String);
  Unit_Price &lt;&lt; 12 &lt;&lt; 13;
  Total_Price &lt;&lt; 53 &lt;&lt; 66;
  Goods_Total &lt;&lt; 70 &lt;&lt; 80;
  VAT_Invoice &lt;&lt; 55 &lt;&lt; 66;
  Company_ID &lt;&lt; 1 &lt;&lt; 2;
  query_Invoice.addBindValue(Invoice_Number);
  query_Invoice.addBindValue(DateTime);
  query_Invoice.addBindValue(Total_Purchased);
  query_Invoice.addBindValue(Qty);
  query_Invoice.addBindValue(Description);
  query_Invoice.addBindValue(Product_CODE);
  query_Invoice.addBindValue(Unit_Price);
  query_Invoice.addBindValue(Total_Price);
  query_Invoice.addBindValue(Goods_Total);
  query_Invoice.addBindValue(VAT_Invoice);
  query_Invoice.addBindValue(Company_ID);
  query_Invoice.execBatch();
  qDebug() &lt;&lt; query_Invoice.executedQuery();
  qDebug() &lt;&lt; query_Invoice.lastError();
  </code></pre>