Utils QML Type
A collection of helpful utility methods. More...
Import Statement: | import Fluid.Core 1.1 |
Methods
Detailed Description
Method Documentation
url iconUrl(name) |
Returns an URL for the Material Design icon name. Use this URL with Image or icon grouped property with controls.
import QtQuick 2.10 import Fluid.Controls 1.0 as FluidControls Image { source: FluidControls.Utils.iconUrl("action/alarm") width: 64 height: 64 }
import QtQuick 2.10 import QtQuick.Controls 2.3 import Fluid.Controls 1.0 as FluidControls Button { icon.source: FluidControls.Utils.iconUrl("action/alarm") text: qsTr("Alarm") }
real scale(percent, real start, real end) |
Scale percent in the range between start and end.