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"
QDate date
= QDate::fromString(dataricovero,
"yyyy-MM-dd");
ui->dateEditDataricovero->setDate(date);
QDate date= QDate::fromString(dataricovero,"yyyy-MM-dd");
ui->dateEditDataricovero->setDate(date);
To copy to clipboard, switch view to plain text mode
but dont work.
If I do
ui->dateEditDataricovero->setDate(date);
QDate date = QDate::currentDate();
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 ;(
Bookmarks