Yes. It is difficult to implement an x-y data plot using graphics / view for the whole thing because of these scaling problems.Has anybody come across similar problem with qgraphicsscene?
My solution was to use graphics / view [I]only for the canvas[I] (the region containing the data curves). The axes, titles, etc. were ordinary QWidgets (a custom axis widget, and standard QLabel for titles). The composite widget that holds all of these sub-widgets handles the layout, zooming, resizing, etc.
The canvas needs to send signals when zooming occurs. The composite widget is connected to these signals and sets the axis ranges appropriately.
Search for other posts under my name and you will see detailed discussions of how to solve the problem as well as that of keeping labels on the plot the same size even when the plot is zoomed.




Reply With Quote

Bookmarks