⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qdebugstream-usage.cpp

📁 QT4的utils库源码包.解压后运行./configure配置,然后make.使用时在.pro文件中加入两行:LIBS+=-L$$(CPPLIBS)-lutils及INCLUDEPATH+=$$(C
💻 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 + -