[vtkusers] How to embed VTK rendering context into Windows Form

John Drescher drescherjm at gmail.com
Wed Jun 11 08:19:32 EDT 2014


On Wed, Jun 11, 2014 at 8:14 AM, Sonya Blade <sonyablade2010 at hotmail.com> wrote:
> Thanks for the advice John,
>
> At least, its good to know that VTK runs on one of the IDEs, I do have the
> Qt Creator 2.6 and Qt 4.8
> installed, but I kinda don't like the Qt as IDE bcoz it really is slow
> during the compilaiton process.

Since 2008 I use VTK and Qt with Visual Studio everyday at work. This
works very well. Instead of the Qt visual studio addon I use CMake to
generate my projects. These days I am using VS 2010 and Qt-4.8.6,
CMake 3.0 and VTK 5.10.

>
> Normally it's only matter of swapping the handles of intended graphical
> content to the OPenGL rendering context
> in any case it will go into OpenGL function of SwapBuffers(DC); But this
> time I couldn't succeed to do it so and I'm
> tearing my hair out.
>
> Do you know where exactly teh Qt Gui examples resides after compilation in
> build directory, in source files they are in
> D:\..........\VTK-6.1.0\Examples\GUI\Qt folder but after the build
> D:\..........\VTK-6.1.0_BUILD\Examples\GUI\Qt doesn't exist.
>

You need to enable Qt in CMake-gui

John


More information about the vtkusers mailing list