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 Auto Increment Field with insertRecord, insertRows,...
Forum Updated to NodeBB v4.3 + New Features

QSqlTableModel Auto Increment Field with insertRecord, insertRows,...

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 673 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
    Olivier Ronat
    wrote on last edited by
    #1

    I want to know how to deal with the autoIncrement Field in a QSqlTableModel when creating a new record (a new row)
    in manual submit mode. When using insertRecord or insertRows method the automatic value is not incremented. after the submitAll procedure in the OBDC Table (a zero value is written instead)
    Thank you for your answer

    1 Reply Last reply
    0
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      Hi,
      can you please post create table statement along with the piece of a code where you insert the data to the table?

      For more information please re-read.

      Kind Regards,
      Artur

      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