<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FDevelopers%2FBuild_system%2FQt_resource_files</id>
	<title>Documentation/4.6/Developers/Build system/Qt resource files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.6%2FDevelopers%2FBuild_system%2FQt_resource_files"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Developers/Build_system/Qt_resource_files&amp;action=history"/>
	<updated>2026-04-08T06:47:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.6/Developers/Build_system/Qt_resource_files&amp;diff=47822&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.6</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.6/Developers/Build_system/Qt_resource_files&amp;diff=47822&amp;oldid=prev"/>
		<updated>2016-11-07T07:33:25Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating QRC Files: genqrc.py ==&lt;br /&gt;
&lt;br /&gt;
Slicer includes a tool to generate &amp;lt;code&amp;gt;.qrc&amp;lt;/code&amp;gt; files from resource directories. This convenience tool was created to simplify working with icons, which can require several entries per icon (one per available resolution) that may be cumbersome to write by hand.&lt;br /&gt;
&lt;br /&gt;
The script ([https://github.com/Slicer/Slicer/blob/master/Utilities/Scripts/genpy.py genpy.py]) can be found in the [https://github.com/Slicer/Slicer/tree/master/Utilities/Scripts Utilities/Scripts] directory of the Slicer source.&lt;br /&gt;
&lt;br /&gt;
The positional argument(s) to the script give a list of directories that should be scanned for resource files (e.g. &amp;lt;code&amp;gt;'Icons'&amp;lt;/code&amp;gt;). An optional &amp;lt;code&amp;gt;-o&amp;lt;/code&amp;gt; parameter may be used to specify the output file (otherwise the script will print to stdout). The script should normally be run in the directory of the desired output &amp;lt;code&amp;gt;.qrc&amp;lt;/code&amp;gt; file in order to provide and generate relative paths that will be both understood correctly by the Qt resource compiler, and meaningful to other developers' checkouts.&lt;br /&gt;
&lt;br /&gt;
For example, to generate [https://github.com/Slicer/Slicer/blob/master/Base/QTGUI/Resources/qSlicerBaseQTGUI.qrc qSlicerBaseQTGUI.qrc], one would run:&lt;br /&gt;
&lt;br /&gt;
 cd /path/to/slicer/source&lt;br /&gt;
 cd Base/QTGUI/Resources&lt;br /&gt;
 ../../../Utilities/Scripts/genqrc.py -o qSlicerBaseQTGUI.qrc Icons&lt;br /&gt;
&lt;br /&gt;
This tool is currently meant to be used in an &amp;quot;offline&amp;quot; manner (i.e. not part of the build process). When adding icons, you should re-run the script to generate an updated &amp;lt;code&amp;gt;.qrc&amp;lt;/code&amp;gt; file and commit the updated file.&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>