I'd like to move the xBottom axis's title position in Qwt plot. However, when I try to do that by subclassing QwtScaleWidget, I can not associate it with my plot.
Since the defualt position of the title of the xBottom axis is in the middle. I'd like to move the title to the right end of the xBottom axis while keeping the text's orientation as the following picture shown.I try to subclass my class(CustomScaleWidget) from QwtScaleWidget and overload its drawTitle() fucntion, and its position moved, but I cannot find any api in qwtplot to associate my class with my qwtplot.Then my CustomScaleWidget is a standalone widget from other widget in the plot.How can I associate it with my plot?Or Is there any other method?Thank u~
The final position is shown in the picture(beside the xbottom axis's right end,but out of the canvas).
abc.jpgdef.jpg
Bookmarks