Maybe the database causes the disconnection? My guess is that you shouldn't use QDataStream, it does something more than just stream the data. Try using QTextStream instead.
Anyway, maybe you should write your own database driver for that database?
Maybe the database causes the disconnection? My guess is that you shouldn't use QDataStream, it does something more than just stream the data. Try using QTextStream instead.
Anyway, maybe you should write your own database driver for that database?
Hi,
first thanks for your answer. You are the first in 3 forums who gives me a hintin 4 days!
I try to use QTextStream and write what happens. -> Must I chance QByteArray ?
Thanks,
SuperSonik
Hi,
I once again. How can I write with QTextStream on QTcpSocket?
![]()
Can someone give me an example?
Greetings,
SuperSonik
As you see we have pretty good answer times here.
Open the text stream to the byte array and stream the QString contents through. You should end up with a byte array which you can then pass to QTcpSocket::write().I try to use QTextStream and write what happens. -> Must I chance QByteArray ?
Bookmarks