my problem solved.
u need to change that as QDate yes =QDate::Current Date().addDays(-1);