Using Qt Item Model
-
Hi,
I created a Qt Item Model class using File -> New File or Project. It generated the fixdb_new.h and fixdb_new.cpp as supposed to. I also created an action in mainwindow.cpp to be able to access the page using the following code:void MainWindow::on_actionFix_in_New_triggered() { fixDb_new *mFixDb_new = new fixDb_new(this); mFixDb_new->exec(); }
When I run it I get the following error message:
C:\Programming\Projects\Folkfriends_1_0\mainwindow.cpp:194: error: 'class fixDb_new' has no member named 'exec'
mFixDb_new->exec();
^
Do I get it because this class comes with no ui ? if so, how can I access it?
Thank you. -
Hi
First of all , ONLY QDialog has exec()If you created a model , then you must assign it to a view to use it
http://doc.qt.io/qt-5/qtableview.html#setModel
any view will do.
-
Hi
First of all , ONLY QDialog has exec()If you created a model , then you must assign it to a view to use it
http://doc.qt.io/qt-5/qtableview.html#setModel
any view will do.