Results 1 to 4 of 4

Thread: QGraphicsBlurEffect on pixmap

  1. #1
    Join Date
    May 2011
    Posts
    18
    Thanks
    2

    Default QGraphicsBlurEffect on pixmap

    Hello,

    I'm trying to apply QGraphicsBlurEffect which inherits QGraphicsEffect, to a QPixmap.
    But I can't find a method to do it.
    Anyone knows a way to do it?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGraphicsBlurEffect on pixmap

    You can create a graphics scene, add the pixmap to it as a QGraphicsPixmapItem, apply the blur effect to it and render it to a pixmap. Or you can convert the pixmap to a QImage and blur it yourself by applying a convolution filter. You can also write a shader program to blur the texture using your graphics card.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2011
    Posts
    18
    Thanks
    2

    Default Re: QGraphicsBlurEffect on pixmap

    Programing myself a blur effect is way out of my league...!
    I'll try the graphicScene

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGraphicsBlurEffect on pixmap

    Quote Originally Posted by evergreen View Post
    Programing myself a blur effect is way out of my league...!
    It's not, blur is a very easy effect to implement.

    http://homepages.inf.ed.ac.uk/rbf/HIPR2/mean.htm
    http://homepages.inf.ed.ac.uk/rbf/HIPR2/gsmooth.htm
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 19th April 2011, 11:17
  2. Replies: 0
    Last Post: 15th December 2010, 16:43
  3. Replies: 3
    Last Post: 22nd August 2010, 09:23
  4. pixmap
    By odee2004 in forum Qt Programming
    Replies: 3
    Last Post: 28th August 2009, 17:16
  5. How to get background pixmap?
    By philipp1 in forum Qt Programming
    Replies: 2
    Last Post: 4th November 2006, 08:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.