Bug 477222 - ShadowedImage does not respect fillMode property
Summary: ShadowedImage does not respect fillMode property
Status: REPORTED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.111.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-19 06:10 UTC by Gabriel Ibáñez
Modified: 2023-11-29 22:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
ShadowedImage.fillMode set to Image.PreserveAspectFit (75.61 KB, image/png)
2023-11-19 06:10 UTC, Gabriel Ibáñez
Details
Using QtQuick.Image with fillMode set to Image.PreserveAspectFit (58.32 KB, image/png)
2023-11-19 06:12 UTC, Gabriel Ibáñez
Details

Note You need to log in before you can comment on or make changes to this bug.
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