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 saves resutls only when return is pressed & And auto sorting after the data is inserted
Forum Updated to NodeBB v4.3 + New Features

QSqlTableModel saves resutls only when return is pressed & And auto sorting after the data is inserted

Scheduled Pinned Locked Moved General and Desktop
qsqltablemodelqtableview
1 Posts 1 Posters 534 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 two questions
    0. I have a table and when a row is added the user double clicks on a column and inserts his/her data, now to go to the next column if the user presses 'TAB' key the cursor goes to the next tab but the data isn't saved, how can i fix this?

    1. now after the new row is inserted the the data needs to be sorted bt if the user opens the new table(the model and view are recreated) the data is sorted bt while editing or creating new entry it isn't how can i add this feature?

    I'm using QSqlTableModel and QTableview.
    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