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. QTableView, force committing data
Qt 6.11 is out! See what's new in the release blog

QTableView, force committing data

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 889 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.
  • _ Offline
    _ Offline
    _Mark_
    wrote on last edited by
    #1

    Hi,
    I would like to force the current cell to commit data (during editing) from my code.
    I see QTableView has commiData() and closeEditor() functions, but I don't understand how to retrieve which editor is currently open.

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _Mark_
      wrote on last edited by
      #2

      Fixed by myself changing the currentIndex when needed. I do not have the control to commit or discard data, but it's a workaround I might accept at the moment.

      1 Reply Last reply
      0

      • Login

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