I have a QSqltableModel model->settable("student_table");.
Can any body tell me how write a simple query, say (select* from student_table where student_id = 4) for
QSqltableModel model. And when the query is executed the model should display the details of student_id = 4.
I tried using setQuery Method, but its giving an saying setQery is protected.