Project

General

Profile

Actions

Bug #11527

open

WTableView frozen column is not being scrolled

Added by Viktar Hasiul 12 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
04/17/2023
Due date:
% Done:

0%

Estimated time:

Description

In attached cpp file there is an example how to make frozen column not scrollable with other non-frozen columns.

In this project a shared_ptr of WTableView is created and it has no model set at first (no columns are created). It also has "setRowHeaderCount" set and some maximum height set (its important). If after clicking a button new model with data is set to this WTableView and data height is bigger than max height of a table, then vertical scrollbar appears, but it will not let you scroll a frozen column, it will only let you scroll non-frozen columns.

I found that setting model with columns would help when creating shared_ptr, but in my case I don't know how many columns will be there, I only know that first column will be frozen. (in my project at first WTableView has no data and later different actions set different models to this table).
I also found that recreating shared ptr of WTableView after clicking button helps.


Files

WTableViewExample.cpp (2.46 KB) WTableViewExample.cpp Viktar Hasiul, 04/17/2023 12:03 PM

No data to display

Actions

Also available in: Atom PDF