[Interest] QTableView

Pritam Ghanghas Pritam_Ghanghas at infosys.com
Wed Mar 27 10:00:56 CET 2013


Hi

As far as I understand the problem, A proxy model on top of your current sql model should do the job.
Look at QAbstractProxyModel

Regards,
Pritam
________________________________
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]
Sent: Wednesday, March 27, 2013 11:13 AM
To: interest at qt-project.org
Subject: [Interest] QTableView

Hi All
         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


I want to design a Sql Model for QtableView,but I don’t know how to do it!
Anybody has good idea?


Thanks
Ken













**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***



More information about the Interest mailing list