On 01-Jun-2012, at 11:40 AM, Robert Wood wrote:

> &ui->dateInDateEdit->date()

That creates a QDate and takes its address. Presumably, if the code works, 
sqlFormatString() isn't altering the input. I think you can fix it by changing

QString enter_invoice_in::sqlFormatString(QDate *date);

to

QString enter_invoice_in::sqlFormatString(const QDate *date);

Or you can assign the QDate to a variable and then pass the address of that 
variable:

QDate aDate = ui->dateInDateEdit->date();
queryString += "\"" + sqlFormatString(&aDate) + "\",";

-John Weeks

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to