-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Re-introduce Qt resource support in Python
This commit re-introduces the support removed in c91fa78 (COMP: Remove unused python-based Qt resource file). It also ensures that the resources are available through Qt resource system by importing the corresponding module. This is particularly relevant when styling application through qss stylesheet where icons can be referenced setting attribute like the following: image: url(":/Icons/Image.svg"); The "Gears.png" icon is added only for the sake of testing the generation of the python-based Qt resource file and may be removed after populating the file.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
{{cookiecutter.project_name}}/Modules/Scripted/Home/Resources/Home.qrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE RCC> | ||
<!-- | ||
This file was automatically generated by genqrc.py ['./Icons/'] | ||
See http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Build_system/Qt_resource_files for more information. | ||
--> | ||
|
||
<RCC version="1.0"> | ||
|
||
<qresource prefix="Icons"> | ||
<file alias="Gears.png">./Icons/Gears.png</file> | ||
</qresource> | ||
|
||
</RCC> |