Advertisement
JPeterson

qDebug windows

Dec 2nd, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. void qDebugHandler(QtMsgType type, const char *msg)
  2. {
  3.     OutputDebugString(L"qDebug");
  4. }
  5.  
  6. int main(int argc, char *argv[]) {
  7.     qInstallMsgHandler(qDebugHandler);
  8.     qDebug("qDebug")
  9.     OutputDebugString(L"test");
  10. }
  11.  
  12. // output:
  13. // test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement