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?
QtWS25 Last Chance

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.5k 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.
  • M Offline
    M Offline
    MhM93
    wrote on 4 May 2016, 05:32 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

    R 1 Reply Last reply 4 May 2016, 06:04
    0
    • M MhM93
      4 May 2016, 05:32

      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?

      R Offline
      R Offline
      Ratzz
      wrote on 4 May 2016, 06:04 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

      1/2

      4 May 2016, 05:32

      • Login

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