[vtkusers] 答复: 答复: 答复: CXX example with Qt

Wang Q wangq1979 at outlook.com
Tue Oct 10 10:29:33 EDT 2017


That's great. Thanks for the help!


I just wonder if there are any docs/tutorials regarding how to program VTK with Qt rather than the examples? Anything fundamental would be very welcome.


Best wishes,


Chiang


________________________________
发件人: Bill Lorensen <bill.lorensen at gmail.com>
发送时间: 2017年10月10日 15:11
收件人: Wang Q
主题: Re: 答复: [vtkusers] 答复: CXX example with Qt

Yes, for the time being.

Or you could run the old wiki example

https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt

The code for the Qt examples has not changed...


On Tue, Oct 10, 2017 at 6:57 AM, Wang Q <wangq1979 at outlook.com<mailto:wangq1979 at outlook.com>> wrote:
Thanks Bill.

Does this mean all examples have to be built during VTK building in order to run them properly? Is this only for vtk 8 or for all legacy versions?

Best wishes,

Chiang


________________________________
发件人: Bill Lorensen <bill.lorensen at gmail.com<mailto:bill.lorensen at gmail.com>>
发送时间: 2017年10月10日 14:52
收件人: Wang Q
抄送: VTK Users; Mike Chinander
主题: Re: [vtkusers] 答复: CXX example with Qt

I have not converted the new VTKExamples to generate proper CMakelists.txt files for Qt examples. To build the Qt examples you will need to build all of the examples. The easiest way to do that is to enable the Wiki examples remote module in your vtk build.

On Oct 10, 2017 5:54 AM, "Wang Q" <wangq1979 at outlook.com<mailto:wangq1979 at outlook.com>> wrote:

Hi Mike,

Thanks for the prompt reply.

I tried the example of  SideBySideRenderWindowsQt on https://lorensen.github.io/VTKExamples/site/Cxx/Qt/SideBySideRenderWindowsQt/. I got the error

Error (active) E1696 cannot open source file "SideBySideRenderWindowsQt.h" SideBySideRenderWindowsQt d:\develop\C++\projects\QtVTKTest\SideBySideRenderWindowsQt.cxx 1

and some other errors relating to the above error.

I am using vtk8.0.1, Qt5.9.1, and VS2017 on Win 7.

Any further comments?

Best wishes,

Chiang



________________________________
发件人: Wang Q <wangq1979 at hotmail.com<mailto:wangq1979 at hotmail.com>>
发送时间: 2017年10月10日 13:49
收件人: Mike Chinander; vtkusers at vtk.org<mailto:vtkusers at vtk.org>
主题: 答复: [vtkusers] CXX example with Qt


Hi Mike,


Thanks for the prompt reply.


I tried the example of  SideBySideRenderWindowsQt on https://lorensen.github.io/VTKExamples/site/Cxx/Qt/SideBySideRenderWindowsQt/. I got the error

Error (active) E1696 cannot open source file "SideBySideRenderWindowsQt.h" SideBySideRenderWindowsQt d:\develop\C++\projects\QtVTKTest\SideBySideRenderWindowsQt.cxx 1

and some other errors relating to the above error.

I am using vtk8.0.1, Qt5.9.1, and VS2017 on Win 7.

Any further comments?

Best wishes,

Chiang
SideBySideRenderWindowsQt - GitHub Pages<https://lorensen.github.io/VTKExamples/site/Cxx/Qt/SideBySideRenderWindowsQt/>
lorensen.github.io<http://lorensen.github.io>
WINDOWS USERS PLEASE NOTE: Be sure to add the VTK bin directory to your path. This will resolve the VTK dll's at run time.



________________________________
发件人: vtkusers <vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>> 代表 Mike Chinander <chinander at gmail.com<mailto:chinander at gmail.com>>
发送时间: 2017年10月10日 13:25:50
收件人: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
主题: Re: [vtkusers] CXX example with Qt

You are going to have give us some more info. What was the example that you downloaded and tried to compile and run? What were the errors.

On Tue, Oct 10, 2017 at 7:16 AM, Wang Q <wangq1979 at outlook.com<mailto:wangq1979 at outlook.com>> wrote:

Hello VTK guys,


I have successfully built VTK8 with Qt5.9.1 using VS 2017. I am trying to follow an example about Qt by CXX, and download CXX and CMake file. By following everything instructed, I opened the generated project and built, but I am faced with some errors, which indicate the relevant header file (.h) is missing.


I googled for a while and did not find a clue. It seems everybody does the same but without the errors. Could anyone shed a light upon what I have missed?


Best wishes,


Chiang

_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers




--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171010/8e295ed3/attachment.html>


More information about the vtkusers mailing list