Hi guys:
First of all I'm using Qt3.
I'm using the QCanvas and QCanvasView. I want to zoom a selected region on my canvasview. The selected region is decided by moving the mouse while the mouse button pressed down.
I've read the post http://www.qtcentre.org/forum/f-newb...hlight=QCanvas.
There are some possible methods to solve the problem in the post. And in the post above I find that I can create another canvasview and show only the part of the canvas I want(zoomed of course).
But I have some questions:
1. Of course I can get the region that I want to zoom by mouseMovingEvent. But how can I pass the selected region to the new created canvasview?
2. And as the method in the post above, it seems that the new canvasview can only show the selected region and cannot access the other parts of the old canvasview.
But in my app, after the selected region has been zoomed and shown, the other parts of the canvasview should still can be accessed by draging the scrollbar. How can I do that?
I'm looking forwar any suggestion.
Thanks a lot and best regards.
Bookmarks