Bug 477222

Summary: ShadowedImage does not respect fillMode property
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Gabriel Ibáñez <isseigx>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: REPORTED ---    
Severity: normal CC: nate, notmart
Priority: NOR    
Version First Reported In: 5.111.0   
Target Milestone: Not decided   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: ShadowedImage.fillMode set to Image.PreserveAspectFit
Using QtQuick.Image with fillMode set to Image.PreserveAspectFit

Description Gabriel Ibáñez 2023-11-19 06:10:40 UTC
Created attachment 163283 [details]
ShadowedImage.fillMode set to Image.PreserveAspectFit

SUMMARY

STEPS TO REPRODUCE
1. Create a ShadowedImage item
2. Set source property
3. Set fillMode property to Image.PreserveAspectFit or Image.PreserveAspectCrop

OBSERVED RESULT
ShadowedImage completely ignores the fillMode property

EXPECTED RESULT
Exactly the same behavior of QtQuick.Image item when fillMode is set

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux: 6.1.62-1-MANJARO (64 bits)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Currently I do not know if this is really a bug or the correct behavior or if I am missing something.
Comment 1 Gabriel Ibáñez 2023-11-19 06:12:00 UTC
Created attachment 163284 [details]
Using QtQuick.Image with fillMode set to Image.PreserveAspectFit