Project

General

Profile

Actions

Support #13098

open

Select an element of a WTableView

Added by Fier Dsoi about 1 month ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
10/10/2024
Due date:
% Done:

0%

Estimated time:

Description

Hi ,

Given a WTableView, how do I select a particular row programmatically? I tried using select or setSelectedIndexes, but I have no clue how to create the WModelIndex class to indicate it.

Thanks in advance

Actions #1

Updated by Matthias Van Ceulebroeck about 1 month ago

  • Status changed from New to Feedback

Hello Fier,

getting a WModelIndex will be done through the model that sets the items in the view. This will depend a little on which model is being used.
You can take a look at for example:

Actions

Also available in: Atom PDF