Qt project nuiapi.h header errors
Unsolved
General and Desktop
-
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.
Testing Qt project
If I included nuiapi header
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