Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QPainterPath::setFillRule ( Qt::FillRule  fillRule  ) 

Sets the fill rule of the painter path to the given fillRule. Qt provides two methods for filling paths:

qt-fillrule-oddeven.png qt-fillrule-winding.png Qt::OddEvenFill (default) Qt::WindingFill

See also:
fillRule()

Definition at line 1242 of file qpainterpath.cpp.

Referenced by QPainterPathStroker::createStroke(), QTextLayout::draw(), QTextLine::draw(), QPainter::drawConvexPolygon(), QPainter::drawPolygon(), QPaintEngine::drawTextItem(), RenderArea::setFillRule(), and Window::setupShapes().

{
    ensureData();
    detach();

    d_func()->fillRule = fillRule;
}


Generated by  Doxygen 1.6.0   Back to index