<div dir="ltr"><br><br><div class="gmail_quote">2010/6/3 Salman SHAHIDI <span dir="ltr">&lt;<a href="mailto:salshahidi@gmail.com">salshahidi@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">I had created it. But it does not work. I don&#39;t know how to configure out my CMakeListes.txt to consider my qrc file.<br><br><br><div class="gmail_quote">2010/6/3 Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">What you need to do is create a new resource (qrc) file with your icon<br>
and then refer to the qrc in your ui file. Look at the CMakeLists.txt<br>
in Qt/Core or Qt/Components to see how to compile a qrc file.<br>
<font color="#888888"><br>
Utkarsh<br>
</font><div><div></div><div><br>
On Tue, Jun 1, 2010 at 11:51 AM, Salman SHAHIDI &lt;<a href="mailto:salshahidi@gmail.com" target="_blank">salshahidi@gmail.com</a>&gt; wrote:<br>
&gt; Thank you for your response.<br>
&gt;<br>
&gt; Yes I want the icon to show up in the top-left corner of the window. I can<br>
&gt; assign an icon in the Qt designer (by resource file or directly by choosing<br>
&gt; an icon file) but it works only for the icons selected from the following<br>
&gt; folder:<br>
&gt; &quot; /../Qt/Components/Resources/Icons/&quot;<br>
&gt;<br>
&gt; This problem occurs only for qt-based application using paraview.<br>
&gt;<br>
&gt; Thank you for your suggestions,<br>
&gt;<br>
&gt; Salman SHAHIDI<br>
&gt;<br>
&gt;<br>
&gt; 2010/5/31 Utkarsh Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Before I can suggest a possible fix, can you elaborate what exactly do<br>
&gt;&gt; you expect the result to be? The APPLICATION_ICON and BUNDLE_ICON are<br>
&gt;&gt; used to define the default icon used by Explorer on Windows and Finder<br>
&gt;&gt; on MAC when showing the application (.exe on Windows and .app on Mac).<br>
&gt;&gt;  If you want the icon to show  up in the top-left corner of the wndow,<br>
&gt;&gt; then you need to set the icon as the windowIcon on your QMainWindow<br>
&gt;&gt; (you can do that in the Qt designer as well).<br>
&gt;&gt;<br>
&gt;&gt; Utkarsh<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sat, May 29, 2010 at 1:39 PM, Salman SHAHIDI &lt;<a href="mailto:salshahidi@gmail.com" target="_blank">salshahidi@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi All,<br>
&gt;&gt; &gt; I have created Qt-based custom visualization applications using<br>
&gt;&gt; &gt; ParaView&#39;s<br>
&gt;&gt; &gt; Parallel Visualization framework (Version 3.8.0). I am trying to figure<br>
&gt;&gt; &gt; out<br>
&gt;&gt; &gt; how to add an icon to this application. I have added these two yellow<br>
&gt;&gt; &gt; lines<br>
&gt;&gt; &gt; in my CMakeLists.txt file in order to assign the WinIcon.ico to my<br>
&gt;&gt; &gt; application:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -------------------------------------------------------------------------<br>
&gt;&gt; &gt; # Build the client<br>
&gt;&gt; &gt; build_paraview_client(liuppa_viewer<br>
&gt;&gt; &gt;     TITLE &quot;LIUPPA Viewer (ParaView-based Example Application)&quot;<br>
&gt;&gt; &gt;     ORGANIZATION  &quot;LIUPPA Viewer Coorporation&quot;<br>
&gt;&gt; &gt;     VERSION_MAJOR 1<br>
&gt;&gt; &gt;     VERSION_MINOR 0<br>
&gt;&gt; &gt;     VERSION_PATCH 1<br>
&gt;&gt; &gt;     SPLASH_IMAGE &quot;${CMAKE_CURRENT_SOURCE_DIR}/LIUPPAsplash.png&quot;<br>
&gt;&gt; &gt; --&gt;    BUNDLE_ICON   &quot;${CMAKE_CURRENT_SOURCE_DIR}/WinIcon.ico&quot;<br>
&gt;&gt; &gt; --&gt;   APPLICATION_ICON  &quot;${CMAKE_CURRENT_SOURCE_DIR}/WinIcon.ico&quot;<br>
&gt;&gt; &gt;     REQUIRED_PLUGINS LIUPPAViewerPlugin<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;     GUI_CONFIGURATION_XMLS<br>
&gt;&gt; &gt;       ${CMAKE_CURRENT_SOURCE_DIR}/SupportedReader.xml<br>
&gt;&gt; &gt; )<br>
&gt;&gt; &gt; ------------------------------------------------------------------------<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; No error displayed in compiling and build, but it does not work (still<br>
&gt;&gt; &gt; no<br>
&gt;&gt; &gt; icon )<br>
&gt;&gt; &gt; Any advise is much appreciated.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Salman SHAHIDI<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; &gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div></div></div><br></div>
</blockquote></div><br></div>