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

Scott Aron Bloom Scott.Bloom at onshorecs.com
Fri Jun 17 19:45:40 CEST 2011


Take a look at the "Frozen Column Example" samlpe code from the Trolls..

 

http://doc.qt.nokia.com/latest/itemviews-frozencolumn.html

 

You can modify to make it "frozen" rows, and expand it to have one on
top and bottom

 

Scott

 

 

From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of Jens Saathoff
Sent: Friday, June 17, 2011 10:36 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] TableView with header and footer for sums,avg and
so on

 

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/87b9568f/attachment.html 


More information about the Qt-interest-old mailing list