I have a scenario where i have to plot a curve with different color based on time....I am using QwtPlotCurve::drawLines() to acheive this color segments.... The problem is "from" and "to" argument variable(marked in bold) in drawLines() takes only int type but i need to pass float type....

virtual void drawLines (QPainter *p, const QwtScaleMap &xMap,const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const;

any suggestions please.......