笔记
mokart
这个作者很懒,什么都没留下…
展开
-
qt编译得到预处理.i文件
pro文件里面添加QMAKE_CXXFLAGS += -save-temps原创 2021-05-28 15:32:46 · 398 阅读 · 0 评论 -
qt pro parse error
CONFIG += qt原创 2021-05-10 09:51:37 · 247 阅读 · 0 评论 -
qbytearray转成hex显示
Qstring toHexadecimal(const QbyteArry &byteArray){Qstring str;fot(int i=0;i<byteArray.length();i++){Qstring byteStr = Qstring::number(static_cast(byteArray[I]),16);byteStr+=",";if(byteStr.length() == 1)str += “0” + byteStr;elsestr+= byteSt原创 2021-04-13 09:16:05 · 876 阅读 · 0 评论 -
qt窗口最小化
this->setWindowState(Qt::WindowMinimized);原创 2021-04-08 16:32:32 · 3274 阅读 · 0 评论 -
Wstrict aliasing报错
#pragma GCC diagnostic warning “-Wstrict -aliasing” pop解决原创 2021-04-07 19:27:56 · 489 阅读 · 0 评论 -
qt的mainwindow显示在屏幕中央
#include #include window->setGeometry(QStyle::alignedRect(Qt::LeftToRight,Qt::AlignCenter,window->size(),qApp->desktop()->availableGeometry()));原创 2021-04-07 18:09:37 · 714 阅读 · 0 评论 -
2021-04-07
sqlite 替换性的插入一行 replace into Test values(“2”,“5”);没有on duplicate key update的用法原创 2021-04-07 09:45:57 · 59 阅读 · 0 评论 -
grep在目录下查找字符串出现的信息
grep ‘string’ ./ -n -r原创 2021-04-01 16:36:19 · 161 阅读 · 0 评论