[Paraview-developers] how do I add resources to custom Application?
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Jan 14 16:55:14 EST 2013
That should have done the trick. Are you using Qt builder to create the UI?
Did you load the icon in Qt builder by pointing to the qrc file?
Utkarsh
On Mon, Jan 14, 2013 at 2:38 PM, Joshua Murphy <
Joshua.Murphy at lasp.colorado.edu> wrote:
> 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
>
> Joshua J. Murphy
> Computer Scientist
> Laboratory for Atmospheric and Space Physics
> University of Colorado, Boulder
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130114/3acc58d7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 16467 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130114/3acc58d7/attachment-0001.png>
More information about the Paraview-developers
mailing list