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. QSqlTableModel::insertRow() via QTableView

QSqlTableModel::insertRow() via QTableView

Scheduled Pinned Locked Moved General and Desktop
qt 5.5qsqltablemodelqtableview
1 Posts 1 Posters 956 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.
  • C Offline
    C Offline
    chronix
    wrote on last edited by
    #1

    Hey,
    I have a QTableView which uses QSqlTableModel as its model. I can use the insertRow() function from the QSqlTableModel and take input via separate dialog, but I want the user to insert into the TableView directly, like if the user presses the add button a new blank row appears in the QTableView and the user and enter the data in the blank row and after user's done the inserted data is updated into the database.
    Thanks in advance. :)

    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