[PyQt] Question about model/view framework

Linos info at linos.es
Tue Feb 26 22:28:57 GMT 2008


IloChab escribió:
> I'm using the couple QTableView+QSqlQueryModel.
> 
> I was wondering if it's possible to extend the table with some columns 
> not contained in the relation but computed on the fly from the application.
> 
> If it's possible I'd like to know how, because I made some tests without 
> any success.
> 
> Thank you in advance.
> ciao
> Licia
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Hi,

if the values are from computed from database columns values you can do in the sql select, if you need to post 
any other information not generated from sql i think you will have to subclass the model and reimplement the 
data method.

Regards,
Miguel Angel.


More information about the PyQt mailing list