//////////日历选择的日期/////////////////////////////////////////
/////点击日历在上面的文本框中显示出来
QObject::connect(ui.calendarWidget, &QCalendarWidget::clicked, [this]() {
QDate dt = ui.calendarWidget->selectedDate();
QString str = dt.toString("yyyy-MM-dd");
ui.lineEdit->setText(str);
});