Hello,
we use the class QwtPlotShapeItem to display various shapes on a canvas. One shape is a QPainterPath with only one start and one end point. Once the start and end point
lies either on a vertical or horizontal line, the shape is not displayed any more. The most obvious reason for this might be in the method QwtPlotShapeItem::draw (line 379 in qwt_plot_shapeitem.cpp):

The command
Qt Code:
  1. d_data->boundingRect.intersects( cRect )
To copy to clipboard, switch view to plain text mode 
returns false, since
Qt Code:
  1. d_data->boundingRect
To copy to clipboard, switch view to plain text mode 
has either a width or height of 0.000.
Then the intersects command of Qt returns false and no line is drawn. Is it possible to change this code to allows such shapes? One workaround might also be to create
a bounding box with a width or height slightly bigger than zero. Or is it not desired to print such shapes using this class? What is the right way then?

Thanks in advance.

Cheers
Marc