Qt 小模板分享

功能:

1.任务栏退出、关于软件

2.程序界面关闭,隐藏在任务栏运行,需要点击退出程序才行

3.日志保存功能,每日23:59:59清空日志保存一次,退出重启也会保存日志

界面截图效果:

1.实际使用中可调用addOneCallLog(QString text),添加通讯日志
void MainWindow::addOneCallLog(QString text)
{
    //显示时间,格式为:年-月-日 时:分:秒 周几
    QString StrCurrentTime = myHelper::Instance()->getSystemTime_log();

    ui->textBrowser->append(StrCurrentTime + text);
}

实际应用项目如下:

下载链接:https://download.csdn.net/download/qq_36809882/11617368?spm=1001.2014.3001.5503

猜你喜欢

转载自blog.csdn.net/qq_36809882/article/details/100095462
QT