You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, July 4th 2013, 5:48am

Qwt MultiBarChart Sample Titles

I’d like to change the titles shown to the left of each sample to something different than 0, 1, 2… as shown in the image below.


Thank you for any help.

2

Thursday, July 4th 2013, 7:32am

If the numbers are on labels you can change them by using setText("ur text")

I am not sure about how things are in QWt....

_Blueman

Intermediate

  • "_Blueman" is male

Posts: 196

Location: Poland

  • Send private message

3

Thursday, July 4th 2013, 7:43am

inherent QwtScaleDraw and re-implement

Source code

1
 virtual QwtText label(double v) const


next set your implementation to yAxis

Source code

1
2
plot->setAxisScaleDraw(QwtPlot::yLeft,
                       new <yourScaleDrawImplementation>);

Used tags

Qwt