Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

How to pass QDataStream between functions?

$
0
0
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 }

Viewing all articles
Browse latest Browse all 18427

Trending Articles