MauiKit Controls
IconItem.qml
29 * @brief An element to display an icon from the icon theme or file asset; or an image from a local file or a remote URL.
31 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-item.html">This controls inherits from QQC2 Item, to checkout its inherited properties refer to the Qt Docs.</a>
63 * By default this item is only visible if the image source is ready or if the icon is valid. You can make it always visible, but would be a better idea to set a fallback icon with `icon.fallback: "icon-name"`.
65 * <a href="https://invent.kde.org/maui/mauikit/-/blob/qt6-2/examples/SideBarView.qml">You can find a more complete example at this link.</a>
92 * @brief A hint for the size of the icon. It will never be larger than the actual container size.
93 * @note If the container size is 200x200, and the icon size hint has been set to 64, then the icon will be centered. If the icon size hint is larger, then the maximum value will be the container size.
100 * @brief A hint for the size of the image. It will never be larger than the actual container size.
101 * @note If the container size is 200x200, and the image size hint has been set to 140, then the image will be aligned following the `alignment` property. If the image size hint is larger, then the maximum value will be the container size.
112 property alias imageSource : img.source
135 * @brief The painted width size of the image. This will make the image resolution fit this size.
136 * By default this is set to `-1`, which means that the image will be loaded with its original resolution size.
138 property int imageWidth : -1
141 * @brief The painted height size of the image. This will make the image resolution fit this size.
142 * By default this is set to `-1`, which means that the image will be loaded with its original resolution size.
167 * By default this is set to check the `isMask` property, and then decide base on the `highlighted` property is use the text color or accent color.
169 property color color : isMask ? (control.highlighted ? Maui.Theme.highlightedTextColor : Maui.Theme.textColor) : "transparent"
173 * If the `imageSizeHint` has been set to a smaller size than the container, then its alignment will be dtermined by this property. Otherwise the image will fill the container size.
alias isMask
Whether the icon should be masked and tinted with the text color, this is used for monochromatic icon...
Definition IconItem.qml:131
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 14 2025 11:53:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 14 2025 11:53:05 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.