[Paraview-developers] how do I add resources to custom Application?

Joshua Murphy Joshua.Murphy at lasp.colorado.edu
Mon Jan 14 14:38:28 EST 2013


Hello,

I am writing a custom Application (modeled after the example Clone1 that ships with the ParaView source code [current git master]).  I am trying to add qt Resources so that I can use my own icons, but I have not been able to figure out how to make it work.

I have added the following to my CMakeLists.txt file:


SET(swft_RESOURCES resources.qrc)

QT4_ADD_RESOURCES(swft_RESOURCES_RCC ${swft_RESOURCES})

And added


  ${swft_RESOURCES}


To the list of source files

And I populated the resources.qrc file, but I cannot seem to add an icon to my tool bar.

Can someone give me a hint on how I might go about using my own icons on a custom toolbar?

Thanks,
Josh

[cid:EC88F5BF-3CA3-4DDD-8614-CB8AD61A2167]
Joshua J. Murphy
Computer Scientist
Laboratory for Atmospheric and Space Physics
University of Colorado, Boulder

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130114/f03e1ee0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: A93D829A-3C2C-4769-925A-35900ECAAE2C.png
Type: image/png
Size: 16467 bytes
Desc: A93D829A-3C2C-4769-925A-35900ECAAE2C.png
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130114/f03e1ee0/attachment-0001.png>


More information about the Paraview-developers mailing list