how to take input any date from user in qdateedit or calenderwidget and show database accordingly by clicking button now my code is showing databse of only current
Qt Code:
void MainWindow::on_pushButton_2_clicked() { ui->dateEdit->setDate(d); int q= d.year(); int q2=d.month(); int q4=d.day(); mode->setQuery(QString("select * from health10 where month(Datestamp)=\""+q3+"\" and day(Datestamp)=\""+q5+"\" and year(datestamp)=\""+q1+"\" ;")); ui->print-> setModel (mode);date(todays date) i want user to selct date and show data of that particular dateTo copy to clipboard, switch view to plain text mode
Bookmarks