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. How to exclude QGraphicsDropShadowEffect from a desired widget side?

How to exclude QGraphicsDropShadowEffect from a desired widget side?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 166 Views
  • 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.
  • K Offline
    K Offline
    Karine
    wrote on last edited by
    #1

    Is it possible to exclude a shadow effect at a given side of a widget?

    I mean, suppose you want to draw the shadow just at the bottom.

    I'm looking for another option than moving the effect with
    setXOffset setYOffset

    I have found this API but for qgraphicseffect:
    https://doc.qt.io/qt-6/qgraphicseffect.html#updateBoundingRec

    How could i call it from a QGraphicsDropShadowEffect ?

    auto label = new QLabel();
    QGraphicsDropShadowEffect * dse = new QGraphicsDropShadowEffect();
    dse->setBlurRadius(60);
    dse->setOffset(0);
    dse->setColor(0x007eff);
    label->setGraphicsEffect(dse);     // Would like the effect be ablied just to the top and bottom borders
    
    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