PDA

View Full Version : QTableView : headers disappear



xavier
26th April 2006, 19:22
Hi all,

I am creating a user interface that should display several table views, and for some of them, the headers tend to disappear at some point.

I have several classes, say class1 and class2.
One table view shows information on class1 (1 instance per row)
One table view shows information on class2 (1 instance per row)

A last table view displays a coefficient for each couple (class1, class2). So if I have m objects of class1 and n objects of class2, this last table has m rows and n columns.

Problem is, when I add or remove objects of class1 or class2, the dimension changes. When I add an object, I send signals to execute the functions "beginInsertRows" and "endInsertRows" to the model associated to the "joint table". It works fine, except that the headers disappear when I do that (not always, but most of the time).

Does any one have an idea why this happens? I use Qt 4.0.

Thanks,

xavier

wysota
5th May 2006, 09:30
Check the task tracker if this was a known issue in 4.0. It might have been fixed in later releases, so you should upgrade your installation.

xavier
8th May 2006, 16:57
yes, I tried with Qt 4.1 under windows and it works fine. Thanks.