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 and delete rows

QSqlTableModel and delete rows

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 574 Views
  • 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.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    I am attempting to use QSqlTableModel to delete rows from an Sqlite database. -
    @
    model->select();
    bool b = model->removeRows(0,200);
    model->submitAll();
    @
    The return value is false, so I thought I would get the last error using
    @
    QSqlError e = model->lastError();
    @
    However, this error has a type of NoError and all the error strings are empty

    Can someone tell me what I am doing wrong?

    Thanks

    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