Solved Save Graphic scene in Database
-
@mrjj
thanks
but this save lines has been drawn in scene ?
or jsut save the pic? -
@M4RZB4Ni
just image unless you change the actual image but
if you use the normal line object, you must handle that besides the images.
(as its not part of the image) -
@mrjj
thanks again
can you help me how i can save that normal lines? -
@M4RZB4Ni
well , is that not just 4 ints/floats ?
for start x,y and end x,y ?
You need to save color or anything else?u can use
http://doc.qt.io/qt-5/qgraphicslineitem.html#lineto get the points.
-
@mrjj
i think its better to capture screenshot from that pic and lines
how can i capture screenshot from x,y location? -
@M4RZB4Ni
ok, if that is what u wish.
The lines will no be lines then , when u load it again.
they will be part of imageEverything u need for screen capture is here
http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html -
@mrjj
thanks
i saw this example
but this capture all of screen!
i want to capture Particular points!
How should i do this? -
@M4RZB4Ni
hi
the core is
originalPixmap = screen->grabWindow(0);¨so you can grab any widget or window this way.
If you need only a subset of widget, then grab whole widget
and cut the pixmap to the wanted size using
http://doc.qt.io/qt-4.8/qpixmap.html#copy -
This post is deleted! -
@mrjj
Thanks a lot Brother :)
My Problem Solved!