Commit 05e8429
committed
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.1 parent f373eef commit 05e8429
File tree
3 files changed
+21
-1
lines changed- {{cookiecutter.project_name}}/Modules/Scripted/Home
- Resources
3 files changed
+21
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments