hi, I'm having problem doing this project, i scoured web for help specific to my problem with no luck, the issue is that i did every thing using the designer and i dont know how to create simple thing like load an image in a scroll area and track mouse clicks to create a points then connect those points to create a mask for that image like in the example.
selection_demons&#.jpg
it seems like simple things to do for a professional programmer but not to me, i'm frustrated.
this is the sample of my code
Qt Code:
ui->graphicsView->setScene(scene);To copy to clipboard, switch view to plain text mode
and the last screen shot is from the interface i did, how can i fill the x and y labels with updated mouse coordinates and when user clicks i can create a point then when he clicks again i can create other point and connect them with a line so finally i would end up with a black shape on a white background, that black shape would represent the part that needs to be removed from the original image at a later stage.
selection_demons&#.jpg
here is the screen shot of the interface, i used a QGraphicsView then put a QGraphicsScene with the image in it and it automatically shows scroll bars but when i want to save the image to a file using grabwidget the only saved part is the viewable part.
Screen shot 2010-.jpg
any help is appreciated.
Bookmarks