Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to delete rows in QtableView and Qabstractitemmodel
Qt 6.12 LTS is out! See what's new in the release blog

how to delete rows in QtableView and Qabstractitemmodel

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.2k 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Hi All
    I have a QTableView and QAbstractitemmodel and I need to delete some of the rows .
    I looked at the documentation and found

    bool QAbstractItemModel::removeRows(int row, int count, const QModelIndex &parent = QModelIndex())

    can some one point me relevant example of removerows

    RatzzR 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Hi All
      I have a QTableView and QAbstractitemmodel and I need to delete some of the rows .
      I looked at the documentation and found

      bool QAbstractItemModel::removeRows(int row, int count, const QModelIndex &parent = QModelIndex())

      can some one point me relevant example of removerows

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

      @Qt-Enthusiast said in how to delete rows in QtableView and Qabstractitemmodel:
      Here is an re-implement example https://myprogrammingnotes.com/addinsertremove-row-qtableview.html
      Qt Doc here.

      --Alles ist gut.

      1 Reply Last reply
      1

      • Login

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