[Qt-interest] QTableView with summary footer
Linos
info at linos.es
Fri Sep 9 17:23:23 CEST 2011
El 07/09/11 10:46, Giuseppe D'Angelo escribió:
> On Wed, Sep 7, 2011 at 9:07 AM, Linos <info at linos.es> wrote:
>> No, i saw the example but i would like to have a summary QHeaderView in footer,
>> not a frozen row with summary values,
>
> The solution should be pretty much the same: a subwidget inside your
> view, with some glue code to control the positioning, the width of the
> columns etc.
>
>> apart from the visual difference i would
>> like to attach any model to the table (Ex: QSqlQueryModel) without attach the
>> model to a proxy where i would calculate this last frozen row summary values.
>
> That's perfectly doable as well, just do it in the view.
>
Tried this but the QHeaderView that i added as footer don't let you scroll
sufficient to see the last model row, in the example all works well because the
column you are freezing it is the first column of the model so you don't need
scroll to see it.
Regards,
Miguel Angel.
More information about the Qt-interest-old
mailing list