How would I go about passing QSqlQueryModel
from a class that connects and queries the database through the control class or QMainWindow in my attempt and back to the widget needing the information?
I thought I could pass the reference location to the QSqlQueryModel
object, but this is not working or I am doing something wrong.
I haven't found any examples showing what I am doing on the Qt Developer page.