Results 1 to 5 of 5

Thread: Alternative to qgraphicsdropshadoweffect

  1. #1
    Join Date
    Jul 2014
    Location
    Manila Philippines
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Alternative to qgraphicsdropshadoweffect

    Is there a way to create shadow like qgraphicsdropshadoweffect? Because the qgraphicsdropshadoweffect have great impact on PC performance. I tried set boarder radius (stylesheet) but it doesnt look good. Im creating a multiple buttons on a stackwidget and each of it has qgraphicsdropshadoweffect like you guys see on a POS (especially on food). Im using qt 4.7.3.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Alternative to qgraphicsdropshadoweffect

    May be you can shift to latest Qt 5.3.1 and see the performance in that...
    Effects will involve heavy computing and Qt 5.x onwards scene graph is meant to do such job with better efficiency.

  3. #3
    Join Date
    Jul 2014
    Location
    Manila Philippines
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Alternative to qgraphicsdropshadoweffect

    I cant this is the version we are using for more than 3years and we think that it will affect all of the previous deployment we had from those years when we will patch the update. Is it possible to have other alternative?

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Alternative to qgraphicsdropshadoweffect

    One way would be to use separate shadow images. You can then combine these shadow with the original image to get the effect.

    Say you use butterfly.jpg ,,, get a butterfly_shadow.jpg made from the designer. Then you can overlay these 2 images to get the desired effect.

  5. #5
    Join Date
    Jul 2014
    Location
    Manila Philippines
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Alternative to qgraphicsdropshadoweffect

    Is this possible on QPushButton?

Similar Threads

  1. Replies: 0
    Last Post: 14th February 2014, 10:45
  2. QGraphicsDropShadowEffect is half baked?
    By liversedge in forum Qt Programming
    Replies: 1
    Last Post: 4th June 2011, 21:59
  3. QGraphicsDropShadowEffect causing a QPainter error
    By Berryblue031 in forum Qt Programming
    Replies: 3
    Last Post: 27th March 2011, 19:43
  4. Replies: 1
    Last Post: 15th January 2010, 16:14
  5. alternative to COM??
    By TheKedge in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 16:02

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.