qtcloudpointqvtkwidget

QVTKWidget - cannot include <QtGui/QWidget>


i'm using point cloud library 1.6 pre built 32 bit for VS2010 on windows machine, and Qt version 5.2.

When try to include in my project, i have an issue:

Cannot open include file: 'QtGui/QWidget': No such file or directory


Solution

  • I know it is a long time now but I had the same error on Qt 5.13. I solved my problems by adding widgets in the pro file :

    QT += widgets gui core
    

    and by replaging the include files:

    replace

    #include <QtGui/QWidget>
    

    with

    #include <QWidget>
    

    and eventually

    #include <QtGui/QApplication>
    

    with

    #include <QApplication>
    

    And it compiles succesfully