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. How to add a new row with a QTableView and a QDataWidgetMapper?
Forum Updated to NodeBB v4.3 + New Features

How to add a new row with a QTableView and a QDataWidgetMapper?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 846 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.
  • M Offline
    M Offline
    migcr
    wrote on last edited by
    #1

    Hello,

    first, i apologize for my bad English.

    I'm trying to create an application with a QMainWindow and a QDialog. The first one will have a QTableView, and the second one will have a group of QLineEdit's associated with a QDataWidgetMapper.

    I've read the post http://qt-project.org/forums/viewthread/18318 that uses a QIdentityProxyModel, but i get some oddities.

    After adding a new record (using a button), how can i restore the original index?

    If someone selects the fake row, how can i avoid updating the index?

    How can i use a QIdentityProxyModel to add new records?

    Can someone help me?

    Thanks a lot,
    Miguel

    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