Qt project nuiapi.h header errors



  • If I include kinect api for Qt 5.6 open source project in Visual Studio 2015. I do not write any code, there are lots of error.

    Here is my steps.

    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here
    enter image description here
    Testing Qt project
    enter image description here
    If I included nuiapi header
    enter image description here

    Here is codes
    main.cpp

        #include "example.h"
        #include <QtWidgets/QApplication>
        
        int main(int argc, char *argv[])
        {
        	QApplication a(argc, argv);
        	Example w;
        	w.show();
        	return a.exec();
        }
    

    example.cpp

        #include "example.h"
        #include "NuiApi.h"
        
        Example::Example(QWidget *parent)
        	: QMainWindow(parent)
        {
        }
        
        Example::~Example()
        {
        
        }
    

    example.h

        #ifndef EXAMPLE_H
        #define EXAMPLE_H
        
        #include <QtWidgets/QMainWindow>
        
        class Example : public QMainWindow
        {
        	Q_OBJECT
        
        public:
        	Example(QWidget *parent = 0);
        	~Example();
        
        private:
        };
        
        #endif // EXAMPLE_H
    

Log in to reply
 

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