Thanks Anja. But I am still stuck. Can you send me a simple example maybe a cone example with something like a push button along with the pro file, using both vtk and qt?<br><br>As you suggested I set the lib path in the .pro file and the include path to my vtk parent directory. But now it says cannot open include file 
vtkconesource.h, if I add the path to this file it comes up with another file...and another and another...<br>I get 5-6 such errors and if I include the path to all of them, I get a fatal error:363 unresolved externals.<br>
What did i miss? what is the LD_LIBRARY_PATH in your example? I didnt do that part.<br><br>Thanks,<br>Ashish<br><br><br><div><span class="gmail_quote">On 10/13/06, <b class="gmail_sendername">Anja Ende</b> &lt;<a href="mailto:anja.ende@googlemail.com">
anja.ende@googlemail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Ashish,<br><br>In the project PRO file (this is used when you run qmake) command, you will need to specify where the vt include and lib files are.
<br><br>Below, I am attaching the relevant sections from my PRO file. As you can see the LIBS directive tells QT the vtk libs I am using in my project and the INCLUDEPATH also includes the path to the vtk includes.
<br><br>LIBS += -lvtkWidgets \<br>-lQVTK \<br>-lvtktiff \<br>-lvtkjpeg \<br>-lvtkexpat \<br>-lvtkMPEG2Encode \<br>-lvtkIO \<br>-lvtkRendering \<br>-lvtkGraphics \<br>-lvtkImaging \<br>-lvtkftgl \<br>-lvtkfreetype \<br>-lvtkFiltering \
<br>-lvtkCommon \<br>-lvtksys \<br>-lvtkDICOMParser \<br>-lXt \<br>-lvtkpng \<br>-lvtkzlib<br><br>INCLUDEPATH += ../src \<br>/usr/local/include/vtk-5.0<br><br>In addition you must export the QTDIR and PATH variables and set the
LD_LIBRARY_PATH . In Linux, the best place is the .bashrc file. I am
not sure about windows but probably it is the environment variables.<br>
<br>
My .bashrc file looks like:<br>
<br>
export QTDIR=/usr/local/Trolltech/Qt-4.1.4<br>
export QTDIR<br>
<br>
export PATH=$PATH:/usr/local/Trolltech/Qt-4.1.4/bin/<br>
export PATH<br>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/<br>
<br><br>I hope this helps you.<br><br>Cheers,<br><span class="sg">Anja</span><div><span class="e" id="q_10e422689dd648bf_2"><br><br><div><span class="gmail_quote">On 13/10/06, <b class="gmail_sendername">Ashish Singh</b>
 &lt;<a href="mailto:mrasingh@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mrasingh@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Even, I want to make a slider in my vtk application. I was planning to use Qt for that, but for some reason I cannot get Qt to run with vtk. How are you doing it, Anja? I have Qt 
4.1.4 and VTK 5.0.2 installed on my workstation (windows xp pro x64). Both of them are running independently but I don't know how to use them together in the same application. How did you configure them?
<br><br>Thanks,<br>Ashish<br><br><div><div><span><span class="gmail_quote">On 10/13/06, <b class="gmail_sendername">Anja Ende</b> &lt;<a href="mailto:anja.ende@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

anja.ende@googlemail.com</a>&gt; wrote:</span></span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>

<span class="gmail_quote"></span>Hi Spencer,<br><div><br>What GUI framework are you using for displaying the sliders? This should be completely independent from vtk.<br><br>I use Qt and use QSlider and it works fine.<br>

<br>

Cheers,<span>Anja

</span></div></span></div>

<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br>

</blockquote></div>

</span></div></blockquote></div><br>