Qt with ITK, VTk library

  • Hey Qt community,

    I am trying to develop a GUI with Qt and i need to use the funcyionality of some other lobraries like ITK, VTK and Plastimatch. I know how to build these libraries and how to use them individually. However I am confused how I can import these libraries to Qt and use them in my GUI. I could not find any helpful tutorial online. Most of them are for long time ago and for very old versions of everyrthing! I was wondering to know how I can approach this problem. Sorry if my question sounds stupid. I am new to Qt. If you have a step by step tutorial that would be graet and much appreciated.


  • I am not using ITK or Plastimatch.

    But with VTK you just build it with Qt support using CMake using the same toolchain you used for building QT ,
    Then include headers and link to the VTK libraries you need.
    VTK provides Qt based widgets.
    I am pretty sure there are topics covering this on VTK website.

  • Hi and thanks for your response,

    Actually I am more interested to use ITK sine its an Image processing Tool kit and I need that functionality for my application. ITK is a huge library and very popular for image processing. It is really strange to me that there is almost no step-by-step tutorial on how to use this library on Qt. I've searched a lot and could not find any recent and good tutorial. Hence, I am posting here to see if someone has the same issue.


  • This is wrong place look for step-by step tutorial for 3rd party libraries. Qt is general toolkit.
    It can't cover every 3rd party library which can use it.
    AFAIK ITK has its own mailing list subscribe and I am pretty sure you will get more help there.

  • Hi Alex and thanks for your response,

    Maybe you are right and this is not the right place to ask this question, but I believe my question is related to the general topic of Qt on how to include a library. The thing is although I am including all the libraries, but I am getting a Linker error in Qt Creator and can't solve that. Here is my ".pro" contents:


    Project created by QtCreator 2015-05-14T15:50:25


    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = testITK
    TEMPLATE = app

    SOURCES += main.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    DEFINES += “vtkRenderingCore_AUTOINIT=4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)”
    DEFINES += “vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL)”

    win32: LIBS += “advapi32.lib” “ws2_32.lib” “Rpcrt4.lib”

    win32: LIBS += -LC:/vtk/x64/6.0.0/install/lib

    INCLUDEPATH += C:/vtk/x64/6.0.0/install/include/vtk-6.0
    DEPENDPATH += C:/vtk/x64/6.0.0/install/include/vtk-6.0

    win32: LIBS += -LC:/ITK/x64/4.4.0/install/lib

    INCLUDEPATH += C:/ITK/x64/4.4.0/install/include/ITK-4.4
    DEPENDPATH += C:/ITK/x64/4.4.0/install/include/ITK-4.4

    It keeps giving me the linking error on finding the ITKSys4.4.lib but it is there and I can see it!! Do you have any suggestion on how I can debug this?

    Thanks in advance,

  • It helps when you post error text.
    As far as I can see ITKSys4.4 is not listed in the list of dependencies.
    There is itksys-4.4. Assuming from win 32 that this is on Windows and above just misspelling
    Which compiler are you using?
    Some linkers require you to specify dependencies in the correct order (VC does not) .

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.