qdebugstream-usage.cpp
来自「QT4的utils库源码包.解压后运行./configure配置,然后make.」· C++ 代码 · 共 16 行
CPP
16 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?