在main.cpp里: 123456QDate overDate(2023,6,28);int days = overDate.daysTo(QDate::currentDate());if(days > 0){ return 0;} # Qt