Project

General

Profile

Actions

Bug #14300

open

WTableView not removing existing columns when all rows are removed from a WStandardItemModel.

Added by Romain Mardulyn 6 days ago. Updated 4 days ago.

Status:
Implemented @Emweb
Priority:
Normal
Target version:
Start date:
02/04/2026
Due date:
% Done:

0%

Estimated time:

Description

When removing all the rows of a WStandardItemModel inside a WTableView using WStandardItemModel::removeRows(), the WTableView does not remove the columns it already has. However, when a new row is added, using WStandardItemModel::appendRow(), all the column in the new row are added as new column instead of reusing the existing ones.

This is likely an issue with WTableView as setting the same WStandardItemModel using WTableView::setModel() solves the issue.

Actions #2

Updated by Romain Mardulyn 5 days ago

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn
Actions #3

Updated by Romain Mardulyn 5 days ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #4

Updated by Matthias Van Ceulebroeck 5 days ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #5

Updated by Romain Mardulyn 4 days ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
Actions

Also available in: Atom PDF