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. How to put delete and edit button in each roe of tableview?
Forum Updated to NodeBB v4.3 + New Features

How to put delete and edit button in each roe of tableview?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtableviewdelete rowedit row
2 Posts 2 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by
    #1

    Hi.
    I want to create delete button and edit button in my table view when it get it's value from model from my database.
    How can I create button for each row?
    How can I write a slot for them?
    How can I send the row ID when they clicked?

    H.Ghassami

    RatzzR 1 Reply Last reply
    0
    • MhM93M MhM93

      Hi.
      I want to create delete button and edit button in my table view when it get it's value from model from my database.
      How can I create button for each row?
      How can I write a slot for them?
      How can I send the row ID when they clicked?

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @MhM93
      You can use button in each row of QTableView as shown in this example.

      --Alles ist gut.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved