<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Darshan<br>
<br>
Thanks for your reply, although im a little confused by it so I would
just like to clarify...<br>
<br>
"you should probably include the QVTKWidget.h that is present in your
bin folder rather than the source folder."<br>
<br>
This statement suggests that I have already included the source header
file from the source folder, which I don't think I have. If you have
read something I have posted that suggests otherwise or maybe you have
some previous experience to call upon either way could you please
clarify.<br>
<br>
As far as I am aware there is no connection from my current visual
studio QT project, which compiles ok,&nbsp; and my vtk installation. the
problem is that when I add the vtkwidget to the my QT project gui in
QTDesigner, visual studio results in the previously mentioned
compilation errors. I beleive i need to configure my QT project to see
the vtk build. If this should be done as Darshan suggests by including
the VTK bin folder. Then my next question is, how do I set this up in
Visual Studio 2008?&nbsp; ... Thanks for still reading :)<br>
<br>
In addition I should stress that both my qt and vtk installed builds
are configured correctly and all examples particularly QTimageviewer as
supplied with vtk examples works ok. <br>
<br>
Cheers<br>
Alex<br>
<br>
<br>
<br>
On 30/07/2010 23:08, Darshan Pai wrote:
<blockquote
 cite="mid:AANLkTi=s3KSC3aFmcoi2BWL_68JNLzeKhj_H+cdE7Stg@mail.gmail.com"
 type="cite">Hi Alex,<br>
  <br>
you should probably include the QVTKWidget.h that is present in your
bin folder rather than the source folder . The reason is that when you
compile VTK with GUISupport it generates a moc file for the widget
which is saved in the bin folder and will be needed for QT .<br>
  <br>
Regards<br>
Darshan<br>
  <br>
  <div class="gmail_quote">On Fri, Jul 30, 2010 at 12:19 PM, Alex
Southern <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:mrapsouthern@gmail.com">mrapsouthern@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">Hi,<br>
    <br>
QT has been working fine up until I try to compile a gui with a
vtkwidgetplugin in. However just in case it does matter, yes I beleive
I did.<br>
    <br>
In Project-&gt;Properties-&gt;C/C++-&gt;Additional Include
Directories...<br>
".\GeneratedFiles;"$(QTDIR)\include";".\GeneratedFiles\$(ConfigurationName)";"$(QTDIR)\include\qtmain";"$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtGui";.\<br>
    <br>
In Project-&gt;Properties-&gt;Linker-&gt;Additional Library
Directories...<br>
"$(QTDIR)\lib"<br>
    <br>
QTDIR has been set in the Environment Variables in My
Computer-&gt;Properties-&gt;Advanced etc<br>
    <br>
In Project-&gt;Properties-&gt;Linker-&gt;Additional Dependencies...<br>
qtmaind.lib QtCored4.lib QtGuid4.lib $(NOINHERIT)<br>
    <br>
Although like I said the QT stuff works fine, If I remove the VTKwidget
and try to compile the app it works perfectly.<br>
    <br>
Cheers<br>
Alex<br>
    <br>
    <br>
On 30.7.2010 19:08, Bobby Ren wrote:
    <blockquote type="cite">did you add the qt include directory into
your additional
includes folders list under the project settings?
      <div>
      <div class="h5"><br>
      <br>
      <div class="gmail_quote">On Fri, Jul 30, 2010 at 11:59 AM, Alex
Southern <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:mrapsouthern@gmail.com" target="_blank">mrapsouthern@gmail.com</a>&gt;</span>
wrote:<br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
        <br>
(Not sure if I should post this here, but I think its a VTK thing
rather than QT)<br>
        <br>
I'm sure this must be straight forward....<br>
        <br>
I have been using QT to make a project in VS 2008 Pro, Windows 7. All
going well and then I want to add in the VTK rendering window....<br>
        <br>
Note: Yes, I installed QT first and &nbsp;waited a couple of hours for it to
build from source, then I installed VTK using cmake with the required,
VTK_USE_QT and VTK_GUISUPPORT, everything eventually installed fine,
cmake found the QT installation no problem and then QT demos in VTK
examples work fine.<br>
        <br>
I copy the QVTKwidgetplugin.dll compiled by VTK over to the
C:/QT/4.6.3/plugins/designer folder. The vtk widget shows up in the
widgets box in QT designer when running through Visual Studio and
standalone.<br>
        <br>
I then return to my QT project, open QT designer and add the vtkwidget
to my desired Tab. Save All. Exit QT Designer.<br>
        <br>
Then I try to compile the project and I am presented with &nbsp;"Cannot open
include file: 'QVTKWidget.h': No such file or directory".<br>
        <br>
Note: I should add that my VTK installation is fine, my VTK projects
still compile an run no problem.<br>
        <br>
The file exists in the VTK build folder C:\VTK\include\vtk-5.6<br>
        <br>
So Im sure this has something to do with the fact the project was never
setup for VTK usage and I need to include the path somehow. Although I
have had no luck so far.<br>
        <br>
Any suggestions please???<br>
        <br>
Thanks<br>
Alex<br>
        <br>
        <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
        <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
        <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
        <br>
Follow this link to subscribe/unsubscribe:<br>
        <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
      </blockquote>
      </div>
      <br>
      </div>
      </div>
    </blockquote>
    <br>
    </div>
    <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
    <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
    <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
    <br>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>