Project

General

Profile

Actions

Feature #13787

open

WTableView: Add getters for size of viewport

Added by Michael Seibt 12 days ago.

Status:
New
Priority:
High
Assignee:
-
Target version:
-
Start date:
06/19/2025
Due date:
% Done:

0%

Estimated time:

Description

We are porting a desktop application having wide tables. Single cell selection must work using arrow keys.
We have implemented this by handling signals keyWentDown and selectionChanged calling scrollTo.
In order to enable implementing page-wise movement on press of Key::PageUp / Key::PageDown, we need getters like

int countOfVisibleRows() const;
int countOfVisibleColumns() const;

(meaning entirely visible rows).
The necessary information "which cells are visible in the browser" is available in WTableView, but inaccessible because all private.
I.e. WTableView itself needs to be modified.

No data to display

Actions

Also available in: Atom PDF