![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
Edward201804
这个作者很懒,什么都没留下…
展开
-
QT出现error: C2001: 常量中有换行符
修改QT配置工具--->选项,按下图配置修改报错文件的编码格式(VS Code为例)点击右下角UTF-8,按下图再看右下角的格式,已经变成“UTF-8 with BOM”原创 2020-12-25 20:34:09 · 1819 阅读 · 0 评论 -
PySide2运行QT生成的UI
安装pythonhttps://www.python.org/downloads/release/python-381/,选择Windows x86-64 executable installer,安装时记得将python加入环境变量安装PySide2命令行中运行pip install PySide2转换文件pyside2-uic.exe mainwindow.ui -o ma...原创 2020-01-07 19:01:54 · 1218 阅读 · 0 评论 -
d3.js画拓扑图
<%#LuCI - Lua Configuration InterfaceCopyright 2012 Jo-Philipp Wich <xm@subsignal.org>Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in ...原创 2019-03-21 13:42:44 · 2248 阅读 · 1 评论 -
QT在编译过程中拷贝文件
#链接之前需要执行的命令sfSrcFile = $$PWD/ST-Link/ST-LINK-Utility/*sfSrcFile = $$replace(sfSrcFile, /, \\)sfDestDir = $$OUT_PWD/ST-LINK-UtilitysfDestDir = $$replace(sfDestDir, /, \\)QMAKE_PRE_LINK += echo d...原创 2019-09-18 10:10:53 · 1594 阅读 · 0 评论 -
QT日志输出到文件(UTF-8格式)
void outputMessage(QtMsgType type, const QMessageLogContext &context, const QString &msg){ QString filename; static QMutex mutex; int index; mutex.lock(); QString text;...原创 2019-09-20 11:48:30 · 835 阅读 · 0 评论 -
QT中textBrowser每行显示不同颜色
ui->tbMessage->append("<font color=\"#FF0000\">" + strMsg + "</font> "); /* 加上颜色显示之后,\n就没了。。。这里加上 */ if(strMsg[strMsg.length()-1] == '\n') { ui->tbMessa...原创 2019-09-24 13:53:03 · 10973 阅读 · 4 评论