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. Applying shadows for multiple objects

Applying shadows for multiple objects

Scheduled Pinned Locked Moved Solved General and Desktop
qgraphicseffectshadowc++
2 Posts 2 Posters 446 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.
  • A Offline
    A Offline
    a1rltt
    wrote on 30 May 2020, 10:51 last edited by a1rltt
    #1

    How can i apply dropshadows to multiple objects?
    I tried QGraphicsDropShadowEffect class like this:

    effect_T = new QGraphicsDropShadowEffect();
    
    effect_T->setColor(QColor(167, 210, 218));
    effect_T->setBlurRadius(30);
    
    ui->tableWidget->setGraphicsEffect(effect_T);
    

    But if i use effect_T for multiple objects, it will apply shadow only for the last one.
    I don't want to create new effects for all objects separately, can i do something about this?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      eyllanesc
      wrote on 30 May 2020, 15:27 last edited by
      #2

      Well unfortunately you will have to create an "effect"" for each widget

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      0

      2/2

      30 May 2020, 15:27

      • Login

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