Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QGraphicsBlurEffect messing up with performances
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QGraphicsBlurEffect messing up with performances

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    evergreen
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • E Offline
      E Offline
      evergreen
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        loladiro
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          evergreen
          wrote on last edited by
          #4

          It's alright I solved this problem by using @QPixmap::grabWidget()@ in order to set it as background.
          Thanks for your help anyway.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            loladiro
            wrote on last edited by
            #5

            Good to hear you figured it out. Could you add [Solved] in front of the title (by editing the first post), please?

            1 Reply Last reply
            0
            • E Offline
              E Offline
              evergreen
              wrote on last edited by
              #6

              That's right, I couldn't figure how to edit the title...!
              thanks

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved