More than my purpose is to want to draw a rectangle into a large area, and then calculated for each small rectangle filling different colors, just like the following figure 1, but there is a problem is every small rectangular line, how can remove line, fill color, only like figure 2, I'll find qt assistant set qpen line width is not 0, the minimum is 1, so help you god how??
CodePudding user response:
Painter. SetPen (Qt: : NoPen);
CodePudding user response:
reference 1st floor Italink response: painter. SetPen (Qt: : NoPen); According to qt assistant on it can, but I painted or have edge, there are other reasons? CodePudding user response:
No, this can't be drawn sideline, otherwise is you wrong usage CodePudding user response:
reference Italink reply: 3/f no, this can't be painted edges, or you use right Find the problem, that is, set the fill color, use setalphaf set the transparency to 0.5, it still has mapped boundary line, if you don't set the transparency is no problem, but I this is transparent background map, is there any other to set up the CodePudding user response:
Yinsiyuan reference 4 floor response: Quote: refer to the third floor Italink response: no, this can't be painted edges, or you use right Find the problem, that is, set the fill color, use setalphaf set the transparency to 0.5, it still has mapped boundary line, if you don't set the transparency is no problem, but I this is transparent background map, is there any other to set up the Moreover, the greater the transparency setting line, the more obvious