Editable labels on QwtScaleDraw
Hi,
my user wants to change the boundaries of the axis by editing the labels itself. Idea is to overlay a QLineEdit or QSpinBox for this purpose (I found no way to edit the labels themselves, maybe I'm wrong here?). For the overlay I need the coordinates of the labels in the coordinate system of QwtScaleDraw. How can I compute them? Or is there another possibility to edit the labels directly on the axis (providing some QLineEdits elsewhere in the application didn't satisfy the user).
Best regards,
Carsten
Re: Editable labels on QwtScaleDraw
Got it now. The obvious function QwtScaleDraw::labelPosition() does the trick - my fault was to use it in ctor of the plot. If I wait until the plot is painted once, it works as expected.