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 adding "virtual" column and row with proxy model
Qt 6.11 is out! See what's new in the release blog

QSqlTableModel adding "virtual" column and row with proxy model

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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
    markom80
    wrote on last edited by
    #1

    Hello,

    I want to add "virtual" column del to every row which contains delete button for row and i also want to add "virtual" row add which contains add new row button.

    @------------------------------
    |------|col1|col2|coln| del |

    |row 1 |data|data|data| x |
    |row 2 |data|data|data| x |
    |row n |data|data|data| x |
    | add | x | | | |
    ------------------------------@

    I have read from that i should do extra row and column with proxy model. But i am quite new with these proxy models. Is there any ready example or could someone write me an example?

    I know that i could subclass QSqlTableModel and do this in there but i want to do it with proxy :).

    • Marko -
    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