I get a screen shot with this code:
Qt Code:
image->save("/home/saman/Desktop/image.png");To copy to clipboard, switch view to plain text mode
Now, I want to send raw data grabbed from grabWidget over the socket. On the other end, machine receives this raw data and creates a gl texture of it.
As you see, the return value of grabWidget is a QPixmap, I also checked the method data_ptr(), which I think returns what I want with DataPtr format. this format is not recognizable by the compiler though! any idea how to resolve this?
Bookmarks