<html><head><meta name="qrichtext" content="1"><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">Hello,</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">I am writing a custom Application (modeled after the example Clone1 that ships with the ParaView source code [current git master]). &nbsp;I am trying to add qt Resources so that I can use my own icons, but I have not been able to figure out how to make it work.</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">I have added the following to my CMakeLists.txt file:</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; ">
<pre style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><!--StartFragment--><font class="Apple-style-span" color="#ff0000">SET(swft_RESOURCES resources.qrc)</font></pre>
<pre style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><font class="Apple-style-span" color="#ff0000">QT4_ADD_RESOURCES(swft_RESOURCES_RCC ${swft_RESOURCES})</font><!--EndFragment--></pre></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">And added&nbsp;</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; ">
<pre style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><!--StartFragment--><font class="Apple-style-span" color="#ff0000">  ${swft_RESOURCES}</font></pre>
<pre style="color: rgb(0, 0, 0); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><br><!--EndFragment--></pre></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">To the list of source files</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div><font class="Apple-style-span" face="Calibri,sans-serif" style="color: rgb(0, 0, 0); ">And I populated the </font><font class="Apple-style-span" face="Consolas" color="#ff0000">resources.qrc</font><font class="Apple-style-span" face="Calibri,sans-serif" style="color: rgb(0, 0, 0); "> file, but I cannot seem to add an icon to my tool bar.</font></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">Can someone give me a hint on how I might go about using my own icons on a custom toolbar?</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">Thanks,</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); ">Josh</div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><br></div><div style="font-family: Calibri, sans-serif; color: rgb(0, 0, 0); "><div><div><div><img src="cid:EC88F5BF-3CA3-4DDD-8614-CB8AD61A2167" type="image/png"></div></div><div>Joshua J. Murphy</div><div>Computer Scientist</div><div>Laboratory for Atmospheric and Space Physics</div><div>University of Colorado, Boulder</div><div><br></div></div></div></body></html>