PDA

View Full Version : QTableView with fixed header



aLiEnHeAd
25th November 2008, 07:53
Hi,
I want to create a scrollable table with Qt4 where the header stays always visible while scrolling the table.
Is this possible without creating two tables (one unscrollable for the header and one scrollable for the data) and connection both of them?
I hoped to find a property "headerAlwaysVisible()" or something similar... but it seems I expected too much :rolleyes:

wysota
25th November 2008, 08:14
I understand that by the header you mean not the header itself but some number of actual items of the table that are to be always visible while others remain scrollable? Something like "freeze" functionality of spreadsheets? If so, then this is not directly supported by Qt - you have to "join" two table views to have that (they can use the same model).