i need to define a new style of QT::BrushStyle ,because i need to change the color of the brushstyle at runtime ,so i can't use the Qt::TexturePattern.
how to define a new style ,anyone can help me?
i need to define a new style of QT::BrushStyle ,because i need to change the color of the brushstyle at runtime ,so i can't use the Qt::TexturePattern.
how to define a new style ,anyone can help me?
You can create a brush with a texture by providing the pixmap when the brush is created or by using setTexture().
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Bookmarks