Advertisement
Guest User

Untitled

a guest
May 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1.     std::cout<< "Reading data..." <<std::endl;
  2.  
  3.     in.startTransaction();
  4.  
  5.     QByteArray response_byte;
  6.     in >> response_byte;
  7.     std::cout<<"Status is: " <<in.status() <<std::endl;
  8.  
  9.     qInfo() << response_byte;
  10.  
  11.     bool boolean = !in.commitTransaction();
  12.     std::cout<< "Boolean is: "<<boolean <<std::endl;
  13.     if (boolean)
  14.         return;
  15.  
  16. //the output is
  17. Status is: 1
  18. ""
  19. Boolean is: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement