python - Turning a folder full of png icons into a PyQt4 resource? -


i have folder full of icons, 4.2 megabytes in total. every single file in folder png unique title want able access single resource file. want put them in transportable pyqt resource file, can use on various projects testing/packaging without having concern myself absolute pathnames.

is there straightforward way using tools provided qt/pyqt?

from understand, want generate .qrc file folder. right?

i have found 2 ways accomplish this:

  1. from qtcreator, create .qrc file , when opened in editor, select add->prefix, add->files.

  2. there script here (works recursively, too). download qrcgen.py , use that: python qrcgen.py icon-folder qrc


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -