When using VS + QT + VTK, it will pop up when you run the program vtkOutputWindow window, although not affect the operation, but for obsessive-compulsive disorder who looked very uncomfortable, the following solution is how it does not pop up.
I am using QtGUIApplication
added #include "vtkoutputwindow.h" above the main function
added vtkOutputWindow :: SetGlobalWarningDisplay (0) in the first line of the main function;
as follows:
#include "QtGuiApplication5.h"
#include <QtWidgets/QApplication>
#include "vtkoutputwindow.h" //加入
int main(int argc, char *argv[])
{
vtkOutputWindow::SetGlobalWarningDisplay(0); //加入
QApplication a(argc, argv);
QtGuiApplication5 w;
w.show();
return a.exec();
}
And then run the program and found no longer pop up