qt 获取两个日期之间的天数

datetime1->daysTo(datetime2)

原文地址:https://www.cnblogs.com/tianmochou/p/8058329.html