Edit QTableView from external windows



  • 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?


  • Lifetime Qt Champion

    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 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.