I Have a pyqt/eric4 project saved in a directory on my harddrive.<div><br></div><div>What is the best way to add icons to buttons, etc.?</div><div><br></div><div>My program will be run from other directories than the source dir</div>
<div><br></div><div>When i just select the file of the icon on the button, (path) than the icons are only shown when i start the program in the sourcedir the icons are</div><div>otherwise not shown.</div><div><br></div><div>
Resources with icons from qtdesigner give import errors</div><div><br></div><div>I have one workaround. That is to chdir to os.path.dirname(sys.argv[0]) before loading the main form.</div><div><br></div><div>So what is the right way to do this??</div>
<div><br></div><div>Cheers Jeroen.</div>