PDA

View Full Version : How simply and generally bind data from queries to Qt widgets?



seim
7th January 2009, 21:54
Hi programmers,

some time ago, I needed Oracle connections working efectively in multithreading environment with massive paralelism. So I had to build a separate layer on the top of OCCI library (not OCI) to be able to use SCP and some other functionality provided by the OCCI, did some hacks to went over some bugs... In those days this layer was ment just as (P)SQL command executer and simple (P)SQL queries provider.

Now the customers come with other requests and I am looking for the simplest way to bind gained data to Qt widgets. The first idea is to take existing db layer and transform it to custom QtSql database plugin. Is there any better solution?

thanks for answers..

wysota
8th January 2009, 00:10
If you manage to create a driver out of your database backend then you can use QDataWidgetMapper as a middleware between the database and Qt widgets.