[Interest] QTableView

Bo Thorsen bthorsen at ics.com
Wed Mar 27 10:03:55 CET 2013


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.com at qt-project.org [interest-bounces+pritam_ghanghas=infosys.com at qt-project.org] on behalf of pengliang(彭亮) [pengliang at 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



More information about the Interest mailing list