1 Attachment(s)
TableView with header and footer for sums, avg and so on
Hi!
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. Here is a drawing of that.
Attachment 6247
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):
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?
I'm very new to qt...sorry.
Thank you for your help!