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.
table_example.jpg

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):

Qt Code:
  1. if(model.currentrow.currency == USD)
  2. {
  3. CalcUSDToEuro(currentrow); // calc euro and show in table
  4. }
  5. else if(model.currentrow.currency == GBP)
  6. {
  7. CalcGBPToEuro(currentrow); // calc euro and show in table
  8. }
To copy to clipboard, switch view to plain text mode 

Is it somehow possible?

I'm very new to qt...sorry.

Thank you for your help!