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>Anja<br><br><div><span class="gmail_quote">On 13/10/06, <b class="gmail_sendername">Ashish Singh</b> <<a href="mailto:mrasingh@gmail.com">mrasingh@gmail.com</a>> 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 class="e" id="q_10e421fbefbeffae_1"><span class="gmail_quote">On 10/13/06, <b class="gmail_sendername">Anja Ende</b> <<a href="mailto:anja.ende@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
anja.ende@googlemail.com</a>> 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 class="e" id="q_10e421fbefbeffae_3">
<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>