📄 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}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -