Or create a SQL query that does this instead of just SELECT *. That is
going to be much faster than a proxy model.

Bo.

Den 27-03-2013 10:00, Pritam Ghanghas skrev:
> As far as I understand the problem, A proxy model on top of your current sql 
> model should do the job.
> Look at QAbstractProxyModel
> 
> ________________________________
> From: interest-bounces+pritam_ghanghas=infosys....@qt-project.org 
> [interest-bounces+pritam_ghanghas=infosys....@qt-project.org] on behalf of 
> pengliang(彭亮) [pengli...@founder.com]
> Subject: [Interest] QTableView
> 
>           QtableView display sql table.
> But I want to merge data of two columns in sql table to one column in  
> QtableView.
> 
> 
> Eg:
> Sql table:
> 1       2       3       4       5       6
> Aa    bb     cc     dd     ee     ff
> Gg    hh     ii       jj       kk     ll
> 
> QtableView
> 1               2                3
> Aabb         ccdd          eeff
> Gghh         iijj               kkll


-- 
Bo Thorsen, European Qt Manager, Integrated Computer Solutions
ICS - Delivering World-Class Applications for Embedded & Mobile Devices
http://ics.com/services
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to