[PyQt] qrc:/// not working to access resources?
Shriramana Sharma
samjnaa at gmail.com
Tue Feb 4 12:52:09 GMT 2014
On Tue, Feb 4, 2014 at 5:50 PM, lloyd konneker <bootch at nc.rr.com> wrote:
> I think you should reply to the list serv (instead of just to me) so
> that others may learn also.
>
My mistake. Done that now. BTW I'm also not an expert but only a maverick
of sorts.
> My reading of QImage documentation does not seem to imply that you can use
> the URI form "qrc:///" :
>
Well QImage documentation need not mention that. It is mentioned in the
generic Qt Resource System documentation.
> Have you tried QImage("qrc:///foo") in c++?
>
No -- I haven't had the patience to write the header separately and the cpp
separately etc. Hence my using PyQt.
>
> You say you are using the difference as a hack to document what resources
> are 'outside'. By outside do you mean in an external resource file (not
> embedded) or do you mean a resource file that is not even on the local file
> system but over the network?
>
As a file that's not embedded. And I only said that using qrc:// makes it
*clear* that the resource is embedded.
>
> I don't understand why Qt provides two different forms, but surely it is
> not so you can document the difference between embedded and external.
>
Whatever the reason they provided, I only said using qrc:// makes it
*clearer*.
--
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140204/4a997790/attachment.html>
More information about the PyQt
mailing list