Continuing to work with tables to Qt, we would like to spent the time, how to install the filter on the model of data representation in
. Therefore, the program code of the tutorial on
was taken to describe the installation of the filter as a basis for the process.
The code was written in QtCreator 3.3.1 based on Qt 5.4.1.
In this lesson, the project structure is similar to the project of the lesson QSqlTableModel.
Add the additional object in the main window of the application, namely, to add the following elements:
- end date;
- start time;
- end time;
- button, by pressing which the filter will be applied.