Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, April 2008
QSqlQuery serialization


Message 1 in thread

Hi!
I need a piece of advice. I want to make a client-server Qt application 
using a database. The clients have no connection to the database, and 
are connected only to the server. They should send only ready-made 
composed strings of queries to the server connected to the database. The 
server prepares and executes the QSqlQuery using the string that is 
received from a client. And here is the question! What is the best and 
easiest way to pass the results of this query (stored in QSqlQuery 
object) back to a client? I think that I need some kind of object 
serialization here, but, as far as I know, Qt doesn't provide such tools 
for it's classes.
May be I miss some obvious solution here or is there some other 
effective way of client->server->database communication?
Thank you in advance!

Regards,
Konstantin.

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

Hi,
think about SOAP and Webservices...

regards
karl-heinz
www.techdrivers.de

-------- Original-Nachricht --------
> Datum: Fri, 04 Apr 2008 09:59:57 +0500
> Von: Konstantin Korotkov <realkos@xxxxxxxxx>
> An: qt4-preview-feedback@xxxxxxxxxxxxx
> Betreff: QSqlQuery serialization

> Hi!
> I need a piece of advice. I want to make a client-server Qt application 
> using a database. The clients have no connection to the database, and 
> are connected only to the server. They should send only ready-made 
> composed strings of queries to the server connected to the database. The 
> server prepares and executes the QSqlQuery using the string that is 
> received from a client. And here is the question! What is the best and 
> easiest way to pass the results of this query (stored in QSqlQuery 
> object) back to a client? I think that I need some kind of object 
> serialization here, but, as far as I know, Qt doesn't provide such tools 
> for it's classes.
> May be I miss some obvious solution here or is there some other 
> effective way of client->server->database communication?
> Thank you in advance!
> 
> Regards,
> Konstantin.
> 
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx

-- 
 [ signature omitted ]