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
Forum Updated to NodeBB v4.3 + New Features

Applying shadows for multiple objects

Scheduled Pinned Locked Moved Solved General and Desktop
qgraphicseffectshadowc++
2 Posts 2 Posters 464 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 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
    • eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on 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

      • Login

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