Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Edit QTableView from external windows
oxycoder last edited by
I have QTableView using QStandardItemModel in QMainWindow
I can use signal and slot to send data to external windows (QWidget), edit and send the data back to QMainWindow.
But there is a problem that once I access model from tableview in slot (QMainWindow), the model is empty. So I guess the slot in QMainWindow are running on different thread.
How can I access the model and update the view after edit data from my QWidget window?
Hi and welcome to devnet,
If you update your model properly, there's nothing to be done for the view since the update will be propagated.
What kind of editor do you have in mind ?