Dear All!
Is it possible to merge different QBrushPattern?
If Yes!, How a way we can merge to different QBrush pattern in a single one?
I want to merge Qt::SolidPattern with Qt::CrossPattern.
If No! Any alternate way to acheive the output.
Dear All!
Is it possible to merge different QBrushPattern?
If Yes!, How a way we can merge to different QBrush pattern in a single one?
I want to merge Qt::SolidPattern with Qt::CrossPattern.
If No! Any alternate way to acheive the output.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
One simple way would be to draw twice... one with the first pattern, and second with the second pattern
else you can use the different constructors of QBrush to create brush from images.
Refer QBrush::QBrush ( const QPixmap & pixmap ) , QBrush::QBrush ( const QImage & image )
Hope this helps![]()
No, It is not well for me because when we set the second pattern the first one pattern is removed; however I have need both of them.One simple way would be to draw twice... one with the first pattern, and second with the second pattern
And the second way consume to much memory according to my need. So, It is not helpful for me. Suppose I have a need of red Horizontal pattern with Blue (or different) base (background) colours. So By the use of image, I would create a horizontal pattern image with different colours. It is a tedious job.QBrush::QBrush ( const QPixmap & pixmap ) , QBrush::QBrush ( const QImage & image )
Hope this helps
So that, I am wanting to merge QBrush pattern or wanting to create own pattern with two colours without using texture pattern.
Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
Bookmarks