How do I filter the month in QSqlTableModel
?
I'm doing this:
model = new QSqlTableModel(this);
model->setTable("tabela"); // db sqlite
model->setFilter("strftime('%m', campo_dataCadastro)='04'");//db YYYY/MM/DD HH:MM:SS
model->select();
But to no avail. The setFilter
is only for WHERE
?