[vtkusers] How to hide the console for a VTK/Qt app

Jim jiksed at yahoo.com
Mon Apr 6 16:59:36 EDT 2009


 
Dear vtkusers,
 
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?
 
I searched VTK archaives and found the following two solutions (to be added to CMakeList.txt), but none of them made any difference.
 
IF(WIN32)
  LINK_LIBRARIES(
  ${QT_QTMAIN_LIBRARY}
  )
  ADD_DEFINITIONS(-DQT_DLL)
ENDIF(WIN32)
 
#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:windows")
 
My system info: XP, VS2008, Qt4.4.3 and VTK5.4
 
Thanks.
 
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090406/5026a6a6/attachment.htm>


More information about the vtkusers mailing list