?? qdebugstream-usage.cpp
字號:
/* Example of how to create streams cout and error, but at the same time to redirect the std::cout and std:cerr both to the same stream as qDebug.*/#include <qdebugstream.h>{ // create your application QApplication app(argc, argv); // these redirect both cout/cerr QDebugStream qdsout(std::cout); QDebugStream qdserr(std::cerr); // now start using cout and cerr normally std::cerr << "Oops"; // this goes to your debugger output}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -