Incorrect behavior of the VTK example programs with QVTKWidget
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Software: Qt 5.6.0 msvc2013_64 Free; VTK 7.0.0 built by VC 18 (MSVC 2013) Win64 with it; CMake 3.5.1 Win32; MSVS 2013 Ultimate Update 5; Windows 10 Home.
The RenderWindowUISingleInheritance and RenderWindowUIMultipleInheritance examples after CMake compile in /SUBSYSTEM:CONSOLE, where in 'Debug' configuration they finished immediately in the QVTKWidget object construction with a message 'QWidget: Must construct a QApplication before a QWidget' in the console. Release configurations both seem to work. With /SUBSYSTEM:WINDOWS all cases are failed to build; all give 'error LNK2019: unresolved external symbol main/WinMain referenced in function __tmainCRTStartup'.