Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi please imagine we have for example 3 clients which insert data in a mysql data base (or sqlite3 ) .
now this is what i am looking for :
when a client inset a data(a row ) to data base other clients get inform.
i know other clients can have select and filter data for example every 10 second ( for last row of data base ) but in this case we have lots of requests .
i can explain it in this way too :
every time when a client insert a data , client puts a data in data base
but now i want it in reverse mode , i mean when a data get inserted in data base , data base send a signal to all clients .
i design my apps with QT design and some one told me i can that with

QObject::connect()

so if you can help me i will be thankful .

What I have tried:

as i mention above , clients app are successfully are connected to data base and they inset data but i could not find a way about when a client inset data others get inform immediately
Posted
Comments
Visweswaran N 14-Dec-20 3:50am    
It see it is a QT project, so I need more information regarding this? What do yo mean by clients?

Is this a same application or all the clients connected with application running in different computers running in one common network. If it is running in same computer and is a same application you can use Qt signals and slots but if multiple applications running in network you should go for something like Socket IO.
Pouria Hosseinchi 15-Dec-20 11:31am    
Thank you very much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900