Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QGraphicsDropShadow effect on multiple objects
Forum Updated to NodeBB v4.3 + New Features

QGraphicsDropShadow effect on multiple objects

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 968 Views 1 Watching
  • 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
    kchandr7
    wrote on last edited by
    #1

    It seems that I can't use the same effects object and apply it to multiple objects? Is there a way around this. It's painful to create a seperate graphics object for each individual object.

    @ QGraphicsDropShadowEffect *effect =new QGraphicsDropShadowEffect;
    effect->setBlurRadius(15);
    effect->setOffset(0,0);

    ui->Label_1->setGraphicsEffect(effect);
    ui->Label_2->setGraphicsEffect(effect);
    ui->Label_3>setGraphicsEffect(effect);@
    

    The above code applies the effect only to the last label.

    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