aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/qquickrectangularshadow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* RectangularShadow: Remove note about individual corner radiusKaj Grönholm2025-11-051-4/+3
| | | | | | | | Since Qt 6.11, individual corner radius are supported. Task-number: QTBUG-141110 Change-Id: I38382ff4c20e53ea1f380ac6ae103ddf0cf527e6 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* RectangularShadow: Add support for individual corner radiusKaj Grönholm2025-10-231-10/+282
| | | | | | | | | | | | Add API for specifying individual corner radius values similar to Quick Rectangle. Try to keep the overhead minimum when not used, by storing data in lazily allocated extra and using separate shader. Use the API in the neumorphicpanel example. Task-number: QTBUG-141110 Change-Id: I90e558526dff01c88fb2d163a33704b8f73aa1fc Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Docs: Fix doc warningsAlexei Cazacov2025-04-301-1/+0
| | | | | | | | This commit fixes several broken links in \nativetype. Pick-to: 6.9 6.8 Change-Id: I45c599eb165b062b2a9eddea3fd13b90d2d7fd74 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Docs: Improve RectangularShadow documentationAlexei Cazacov2025-01-171-53/+57
| | | | | | | Task-number: QTBUG-131012 Pick-to: 6.9 Change-Id: If2772b615cab303d018b0353ee7432596bff6c7c Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
* Add RectangularShadow elementKaj Grönholm2024-11-091-0/+586
Add a new element into QtQuick.Effects called RectangularShadow. This is a high performance shadow/glow for (rounded)rectangle shapes. Differences compared to QGE RectangularGlow: - Implemented in C++ and part of QtQuick.Effects module. - Different API, modelled based on CSS box-shadow. - Shader uses SDFs math for rounded rectangle. Reduced item size and properly rounding math (circle is a circle). - Allows offset and spread relative to item. - Default color is black (shadow) rather than white (glow). - Using "layer.enabled" for cache property rather than separate ShaderEffectSource. - Property "material" so shader effect can be customized. QQEM can contain RectangularShadow node for easier customization. Contains an example and lancelot tests. Task-number: QTBUG-128469 Change-Id: Ie3baa774a3294ba0c7fe11d1bee8cd7aae897505 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>