Use QDateTime class. Make a list with tasks and dates and compare the dates periodically with QDateTime::currentDateTime().