Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Edit QTableView from external windows
Forum Updated to NodeBB v4.3 + New Features

Edit QTableView from external windows

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 533 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oxycoder
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved