Lines with zero width that are drawn from QGraphicsItem::paint() when a QGLWidget is used as the viewport do not appear on screen. They appear correctly if a QGLWidget is not used as the viewport. In either case calling QWidget::render() does draw the line cosmetically.