Hi Uwe,
Thanks for response.
The code is done as following:
When i use this line "myPlot->axisScaleDraw(QwtPlot::xBottom)->enableComponent(QwtAbstractScaleDraw::Labels, false);", the tick at the maximum value of x axis (value: 12) doesn't display.QwtPlot *myPlot = new QwtPlot;
//Set Axis Scale
myPlot->setAxisScale(QwtPlot::xBottom, 0, 12);
myPlot->setAxisScale(QwtPlot::yLeft, 0, 120);
//Set Axis Title, Set Max Minor, Medium, Major
...
//Disable Label Component
myPlot->axisScaleDraw(QwtPlot::xBottom)->enableComponent(QwtAbstractScaleDraw::Labels, false);
If i set the pen width of the ScaleDraw to 2, that tick will display. But, it's very ugly.
hhhhh.png
Thanks
Looks like a bug in the layout code of QwtScaleWidget to me. Maybe subtracting one pixel from length in QwtScaleWidget::layoutScale() is the necessary fix.
Uwe
Bookmarks