在main.cpp里:

1
2
3
4
5
6
QDate overDate(2023,6,28);
int days = overDate.daysTo(QDate::currentDate());
if(days > 0)
{
return 0;
}