Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Anchor issue related to DropShadow.

Anchor issue related to DropShadow.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 152 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.
  • B Offline
    B Offline
    BikashRDas
    wrote on last edited by BikashRDas
    #1

    Hi All,
    I could not create a working example code. But will try to explain the issue.
    Qt version: 5.9.4
    OS: Windows 10 (I am sure this will be common to other OS also)

    I have a Screen, a part of which gets populated with one of the item out of 2 custom items, depending on the state using a Loader. Each of the custom item is having a Rectangle and a DropShadow to create the shadow effect for the rectangle.

    Now every time a custom item is unloaded, I am getting following error:

    Qt/Qt5.9.4/5.9.4/msvc2015/qml/QtGraphicalEffects/DropShadow.qml:87:5: QML DropShadowBase: Cannot anchor to an item that isn't a parent or sibling.
    

    I am trying to create a working example for the same. But please let me know if have any information on the same.

    I had some doubts on the unloading part of the item. I tried using the active and visible properties of the Loader to set the sourceComponent of the Loader to undefined to unload the loaded item. But no use. One thing wanted to add here is, I am not getting any issue as such. The shadow effect is working fine for the newly loaded item. But somehow getting a feel like this is making the app slow.
    Thanks for the help in advance.

    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