We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
简介:Status Monitor是一个窗口,用于打印一些我想要的日志信息。 备注:无
Description: Status Monitor is a window (QWidget) that prints some log info. Addition notes: None
QWidget
The text was updated successfully, but these errors were encountered:
可用的新函数:void StatusMonitor::InsertLog(QString LogType, QString LogContent)
void StatusMonitor::InsertLog(QString LogType, QString LogContent)
函数参数:两个QString,第一个为日志类型(可选INFO、WARN、ERROR、OK,输入其他会被识别成OTHER),第二个为日志内容。
QString
INFO
WARN
ERROR
OK
OTHER
函数作用:在日志窗口与调试窗口输出日志。
调用方法
在header中调用StatusMonitor:
#include "<Path>/StatusMonitor.h"
在.cpp中实例化StatusMonitor并调用函数:
.cpp
StatusMonitor* status_monitor = new StatusMonitor; status_monitor->InsertLog("INFO", "函数输出测试");
New Function: void StatusMonitor::InsertLog(QString LogType, QString LogContent).
Parameters: QString LogType (Here are parameters avaliable: INFO、WARN、ERROR、OK and OTHER), QString LogContent (Contents of the log, in plain text).
QString LogType
QString LogContent
What does the function do: The function outputs log in both separate log window and debug window
How to Use
#include "<Path>/StatusMonitor.h" StatusMonitor* status_monitor = new StatusMonitor; status_monitor->InsertLog("INFO", "Log output test.");
Sorry, something went wrong.
Marcus-P-114514
No branches or pull requests
简介:Status Monitor是一个窗口,用于打印一些我想要的日志信息。
备注:无
Description: Status Monitor is a window (
QWidget
) that prints some log info.Addition notes: None
The text was updated successfully, but these errors were encountered: