读书人

请教怎么去掉白线死了

发布时间: 2014-01-17 00:06:00 作者: rapoo

请问如何去掉白线,急死了,在线等!
请教怎么去掉白线,死了,
贴上代码:
double x=0;
double y=0;
QColor brushColor;
painter.setPen(QPen(Qt::NoPen));//明明去掉了边框
for(x=0;x<300;x++){
for(y=0;y<40;y++){
brushColor.setHsl(600-x+y,255,125);//设置颜色,色度、饱和度、亮度
painter.setBrush(QBrush(brushColor));
painter.drawRect(210+x*sectionWidth/300,58+y*sectionHeight/40,sectionWidth/300,
sectionHeight/40);//sectionWidth、sectionHeight分布是区域的宽和高
}
}

我明明去掉了边线,为什么会出现白线呢?谁能帮我去掉啊,马上散分,在线等!
[解决办法]
不要去掉边框,将边框和画刷的颜色设置的一样,试试

读书人网 >QT开发

热点推荐