<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>&nbsp;</DIV>
<DIV>Dear vtkusers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>While executing VTK examples such as qtevents, a black (debugging) console like Windows Command Prompt pops up. This doesn't look nice if my customers see it. How can I hide this console?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I searched VTK archaives and found&nbsp;the following two solutions (to be added to CMakeList.txt), but none of them made any difference.</DIV>
<DIV>&nbsp;</DIV>
<DIV>IF(WIN32)<BR>&nbsp; LINK_LIBRARIES(<BR>&nbsp; ${QT_QTMAIN_LIBRARY}<BR>&nbsp; )<BR>&nbsp; ADD_DEFINITIONS(-DQT_DLL)<BR>ENDIF(WIN32)</DIV>
<DIV>&nbsp;</DIV>
<DIV>#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:windows")</DIV>
<DIV>&nbsp;</DIV>
<DIV>My system info: XP, VS2008, Qt4.4.3 and VTK5.4</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>