随笔分类 - qt
摘要:opt/qt5.4.2/5.4/gcc_64/include/QtCore/qglobal.h:684:61: error: static assertion failed: Type is not registered, please use the Q_DECLARE_METATYPE macr
阅读全文
摘要:https://blog.csdn.net/qq_38694388/article/details/119120397 git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git -b 1.18 各个版本,在左上角选择 https
阅读全文
摘要:音视频都不能播放, https://blog.csdn.net/liukang325/article/details/45025853 sudo add-apt-repository ppa:linuxuprising/libpng12 sudo apt update sudo apt instal
阅读全文
摘要:desc: undefined reference to `JSC::Yarr::wordcharCreate() https://forum.qt.io/topic/32634/unresolved-external-symbol-attempting-to-build-5-2 in "qt\qt
阅读全文
摘要:重新执行以下qmake
阅读全文
摘要:1.要继承自QObject 2.类中要包含宏Q_OBJECT 3.执行qmake,否则一直提示信号函数未定义
阅读全文
摘要:cmd进入程序所在路径,windeployqt puzzle.exe即可打包
阅读全文
摘要:创建工程的时候是QT Console Application 1.项目->run->Run in terminal 2.pro文件中添加 CONFIG +=console thread CONFIG +=console(这种没有验证)
阅读全文
摘要:下载的qt代码不能编辑,原因是文本编码是GB2312,现在选择的是utf-8,把编码改过来就可以编辑了
阅读全文
摘要:QByteArray baData; QString str = QString(baData); // 反过来转换; QByteArray by1 = str.toLatin1(); QByteArray by2 = str.toLocal8Bit();
阅读全文
摘要:cmake 编译opengl,参考https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows cmake configure完成没有错误后,点击generate生成makefile文件 mingw32-make -j 8编译到27%的时候,出错D
阅读全文
摘要:sockettools识别GB2312,接收qt server 数据时 QByteArray ba=QString().toLocal8Bit(); char *str=ba.data(); 不能一步写成 char *str=QString().toLocal8Bit().data(); 必须分开写
阅读全文
摘要:QString str("hello"); QString str("hello"); QByteArray bytes = str.toUtf8(); // QString转QByteArray方法1 QByteArray bytes = str.toUtf8(); // QString转QByt
阅读全文
摘要:1、向QTextEdit中当前光标位置添加一行字符串message ui.messageTextEdit->textCursor().insertText(message+"\n"); 2、向QTextEdit中末尾追加一行字符串message QString content = ui.conten
阅读全文