[Qt-interest] TableView with header and footer for sums, avg and so on

Jens Saathoff jensesaat at googlemail.com
Fri Jun 17 19:36:19 CEST 2011


Hi!

I asked this already on the forum, and i really found no solution for this.

I want to create a TableView with Header, Data and Footer (SUM, AVG, etc.).
I want to scroll the data-values and/or header and footer.

Pictures say more than just words. I added an attachment.

I want to set a model via setModel(mymodel).

In this model i want to calculate a new value for the
rows…example(pseudo-code):


if(model.currentrow.currency == USD)
> {
> CalcUSDToEuro(currentrow); // calc euro and show in table
> }
> else if(model.currentrow.currency == GBP)
> {
> CalcGBPToEuro(currentrow); // calc euro and show in table
> }


Is it somehow possible?


Thank you for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110617/ee78df2d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tableexample.jpg
Type: image/jpeg
Size: 27151 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110617/ee78df2d/attachment.jpg 


More information about the Qt-interest-old mailing list