Skip to content
QtWS25 Last Chance
  • 0 Votes
    3 Posts
    508 Views
    M
    Hi SGaist , thanks for your welcome... I'm drawing these lines like this chartview=QChartView(self.__candlechart) chartview.setRubberBand(QChartView.HorizontalRubberBand) chartview.setRenderHint(QPainter.Antialiasing) lineserie1=QLineSeries() for i in self.times: lineserie1.append(QPointF(i,random.random())) pen = lineserie1.pen() pen.setWidth(3) pen.setBrush(QBrush(QColor(255,0,0))) lineserie1.setPen(pen) lineserie2=QLineSeries() for i in self.times: lineserie2.append(QPointF(i,random.random())) pen = lineserie2.pen() pen.setWidth(3) pen.setBrush(QBrush(QColor(0,0,255))) lineserie2.setPen(pen) self.__candlechart.addSeries(lineserie1) self.__candlechart.addSeries(lineserie2) If I change the order (I mean add the lines before set rubber band option I got the same result. Thanks!
  • 0 Votes
    1 Posts
    303 Views
    No one has replied