tomwer.gui.icons.getQFile#
- tomwer.gui.icons.getQFile(name)#
Create a QFile from an icon name. Filename is found according to supported Qt formats.
The resource name can be prefixed by the name of a resource directory. For example “silx:foo.png” identify the resource “foo.png” from the resource directory “silx”.
If no prefix are specified, the file with be returned from the silx resource directory with a specific path “gui/icons”.
See also
silx.resources.register_resource_directory()
.- Parameters:
name – Name of the icon, in one of the defined icons in this module.
- Return type:
QFile
- Returns:
Corresponding QFile
- Raises:
ValueError when name is not known