QPainterPath和qtpainter

来源:互联网 发布:优化电脑配置的软件 编辑:程序博客网 时间:2024/05/29 10:55

QPainter绘图函数

drawArc()                                 弧

drawChord()                               弦
drawConvexPolygon()                       凸多边形
drawEllipse()                             椭圆
drawImage()                               QImage表示的图像
drawLine()                                线
drawLines()                               多条线
drawPath()                                路径
drawPicture()                             按QPainter指令绘制
drawPie()                                 扇形
drawPixmap()                              QPixmap表示的图像
drawPoint()                               点
drawPoints()                              多个点
drawPolygon()                             多边形
drawPolyline()                            多折线
drawRect()                                矩形
drawRects()                               多个矩形
drawRoundRect()                           圆角矩形
drawText()                                文字
drawTiledPixmap()                         平铺图像

drawLineSegments()                        绘制折线



    /*
     *函数名:setClipRect(int x , int y , int width , int high)
     *功  能:保留剪切下来的区域
     *参数说明:
     *      x——要剪切的起始水平位置
     *      y——要剪切的起始垂直位置
     *      width——要剪切区域的宽度
     *      high——要剪切区域的高度
     *
     */