[SOLVED] QGraphicsBlurEffect messing up with performances
-
Hello,
I am currently using a QGraphicsBlurEffect on a pixmap of my mainWindow and pop up a new window that is modal (a really beautifull effect:) )
Anyway I use a QScrollArea on this modal window and the scrolling is very slow. I am prety sure it is because Qt refreshes the blur effect of the background regulary.
Anyway, I would like to know is there's some kind of way to freeze the frame of the blured picture ( it's of course a static picture that is blured ) to improve the perfomances.Thanks
-
Nobody can help?
In fact, I now see that my problem could be solved simply by being abble to apply QGraphicsBlurEffect to the pixmap itslef only.
But I can't find a method to do it. Does anyone knows a way? -
I don't know your code so I can't really give a definite answer, but you could look into QPixmapCache to cache your blurred pixmap between paintEvents.
-
It's alright I solved this problem by using @QPixmap::grabWidget()@ in order to set it as background.
Thanks for your help anyway. -
Good to hear you figured it out. Could you add [Solved] in front of the title (by editing the first post), please?
-
That's right, I couldn't figure how to edit the title...!
thanks