Regardless of whether you load a qrc or convert it to python and import that, the next step would be to actually use the resources. Otherwise you are still accessing the filesystem, as the resource file doesn't automatically re-route your file access:
See: https://doc.qt.io/qt-5/resources.html#using-resources-in-the-application The format is to use paths like ":/resource/path/to/file.png" On Wed, May 15, 2019 at 9:56 AM Alon Zaslavsky <[email protected]> wrote: > I just set the qrc file as the resource file for my tool ui file. Saved. > And re-ran the tool. > I also learned I could compile the qrc file into a py file, but don't know > where to go from there. > > Any advice would be appreciated. > > On Tue, May 14, 2019 at 12:54 PM Justin Israel <[email protected]> > wrote: > >> >> >> On Wed, May 15, 2019, 6:44 AM Alon Zaslavsky <[email protected]> wrote: >> >>> Hi all, >>> >>> I'm trying to fix our bonesTools. All the files are here: >>> >>> /tip/rnd/people/marissa/puppet-2.x/modules/python/tip/maya/studio/tools/bonesTool >>> >>> In Qt Designer the icons appear in the UI. But when the tool run in Maya >>> the icons don't show. I've read online that I need to set them up in a qrc >>> resource file. I've done this, but still no luck. >>> >>> Anyone know what I'm missing? >>> >> >> There isn't enough info here to know what you are missing. Having the >> icons compiled into the qrc file is the first required step. What did you >> do after that to consume the qrc file in your tool? >> >> >>> Thanks! >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Python Programming for Autodesk Maya" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/python_inside_maya/CAKjYKQnoWZxfCtqS1BWfdBB0-PuNg39M%2BkH72nV_yM7FN6JrRg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CAKjYKQnoWZxfCtqS1BWfdBB0-PuNg39M%2BkH72nV_yM7FN6JrRg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Python Programming for Autodesk Maya" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0gf%2BiDCW0eAuO29ccd17D9EeVjuSEtdox56WGqe2gL4A%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0gf%2BiDCW0eAuO29ccd17D9EeVjuSEtdox56WGqe2gL4A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > Alon Zaslavsky > Puppet TD > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/CAKjYKQm%3DOEPLXBougj7JvbVwXxk5Hc5zJ5po3MWvp6qzAVqNqg%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAKjYKQm%3DOEPLXBougj7JvbVwXxk5Hc5zJ5po3MWvp6qzAVqNqg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2zr0EEgwrJPVWkDGXwBK1vSAFL5nshnPXLCdRYBEPV2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
