Unsolved Anchor issue related to DropShadow.
-
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.