Hi I have this problem:
I have a mysql table and in one field I have a date, I want put this date in a DateEdit.
I make this code:
dataricovero is a string like this: "2012-01-17"
Qt Code:
  1. QDate date= QDate::fromString(dataricovero,"yyyy-MM-dd");
  2. ui->dateEditDataricovero->setDate(date);
To copy to clipboard, switch view to plain text mode 

but dont work.

If I do
Qt Code:
  1. QDate date = QDate::currentDate();
  2. ui->dateEditDataricovero->setDate(date);
To copy to clipboard, switch view to plain text mode 
All work fine but I dont want set the current time but the time read in sql query.

Please help me!
Thank you

P.S. Sorry for my english ;(