Re: Problem with scale ticks
Quote:
Originally Posted by
gd
Is it possible to avoid the displaying of the tick labels in an easier way?
Don't know if this is easier, but you could use medium instead of major ticks. The tick length can be changed using QwtAbstractScaleDraw::setTickLength().
Uwe
Re: Problem with scale ticks
Dear Uwe,
thanks for the suggestion I will try it.
But anyway why using my code the last and the first major ticks disappear? What is wrong with my code?
Thanks again to be a very helpful person.
Best regards
Re: Problem with scale ticks
I forgot - there is a simple solution:
Quote:
But anyway why using my code the last and the first major ticks disappear?
Looks like a bug in the layout engine of the plot widget- the axis widgets are one pixel too small and the last tick is painted outside. If you can live with a pointless margin a possible workaround is to return a dummy blank for one of your tick labels.
Uwe
Re: Problem with scale ticks
Quote:
Originally Posted by
Uwe
If you can live with a pointless margin a possible workaround is to return a dummy blank for one of your tick labels.
Really thanks! I have solved in that way!
Best regards