Anybody, please?
Anybody, please?
Sincerely,
Wieland J.
ok, next idea: you have to work with canvas pixel.
first, you have to find the pixel position where your legend should appear (remember: in pexels, (0/0) is top-left)
second, translate this position into axis values using qwtplot::transform or qwtplot::invtransform (sorry, I'm always confused which one translates in which direction...)
third, do second step after each zoom (the zoomer emits a "zoomed(...)"-signal which you can connect to a custom slot)
have fun
Felix
Check the CpuPieMarker from the cpuplot example. Instead of the pie draw your legend.
Uwe
Bookmarks