Re: [Interest] get application's resources

2018-08-10 Thread Frank Rueter | OHUfx

Ah, nice one, thanks!
I also just stumbled over this which seems to work as well:

|QtCore.QResource(':qrc/images').children() |

Two arrows in the quiver now, sweet.

Thanks again,
frank


On 10/08/18 3:27 PM, Reinhardt Behm via Interest wrote:


QDir is your friend.

QDir dir(":/", "*");
qDebug() << dir.dirName() << dir.entryList();


​
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] get application's resources

2018-08-09 Thread Reinhardt Behm via Interest
QDir is your friend.

QDir dir(":/", "*");
qDebug() << dir.dirName() << dir.entryList();

-- 
Best Regards

Reinhardt Behm


On Friday 10 August 2018 14:47:39 Frank Rueter | OHUfx wrote:
> Hi,
> 
> in my host application I can use the existing application resources for
> things like icons etc like this:
>  QtGui.QIcon(':qrc/images/some_image.png')
> 
> Is it possible to get a list of everything in the application resources
> to see what other images are available, i.e. everything under ":qrc/"?
> 
> Thanks,
> frank

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] get application's resources

2018-08-09 Thread Frank Rueter | OHUfx

Hi,

in my host application I can use the existing application resources for 
things like icons etc like this:

    QtGui.QIcon(':qrc/images/some_image.png')

Is it possible to get a list of everything in the application resources 
to see what other images are available, i.e. everything under ":qrc/"?


Thanks,
frank


--

ohufxLogo 50x50 
	*vfx compositing  | *workflow 
customisation and consulting * *

**
   


Your gateway to over 1,000 free tools... right inside of Nuke 



___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest