Project

General

Profile

Actions

Feature #7786

open
VJ

WStandardItemModel::insertRow returns void instead of WStandardItem*

Feature #7786: WStandardItemModel::insertRow returns void instead of WStandardItem*

Added by Velvet Jones almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/16/2020
Due date:
% Done:

0%

Estimated time:

Description

The following should work:

tableview->select(model->indexFromItem(model->insertRow(model->rowCount(),items)));

Is there another simple way to select the row I just inserted?

VJ Updated by Velvet Jones almost 6 years ago Actions #1

Ugh, I just realized that it probably doesn't make sense to return just one of the items in 'items'. But the question still stands; how to select a row I just inserted?

VJ Updated by Velvet Jones almost 6 years ago Actions #2

I suppose WStandardItemModel::appendRow() and insertRow() should return a WModelIndex.

Actions

Also available in: PDF Atom