[SOLVED] How to pass QDataStream between functions?
-
Hi
I have two functions, A and B. An instance of QDataStream is created in A and it should be passed to B so B can write some data on it. After passing a stream by reference, it seems that it's not valid anymore.
What do you suggest?
@
void A() {
QDataStream x;
// ...
B(x);
}void B (QDataStream& d)
{
// Do something with d
}
@ -