Hi I'm trying to reschedule a QDate, but do not know why that is not working.

I have the following code:

Qt Code:
  1. qDebug() << ano2;
  2. qDebug() << mes2;
  3. qDebug() << dia2;
  4.  
  5. bool b = ui->data_inicio->date().setDate(ano2, mes2, dia2);
  6. qDebug () << b;
To copy to clipboard, switch view to plain text mode 



In qDebug appears fine. Until b returns true.

Why does not the date and amended?




regards,
Daniel Sousa