- 博客(38)
- 资源 (9)
- 收藏
- 关注
原创 Qt6.8编译项目找不到文件——6.8.2\msvc2022_64\include\QtWidgets\QMainWindow does not exist.
选择建议:优先使用 命令行参数(灵活)或 自定义模板(规范),环境变量可能影响其他项目编译。二、自定义Qt Creator构建模板。一、通过qmake命令行参数全局设置。三、利用环境变量预配置。
2025-03-01 20:31:08
517
原创 SVN提交失败Can‘t create directory ‘E:\SVN\Tool\db\transactions\27-v.txn‘:
原因:缺少两个文件夹。
2024-09-05 09:35:42
393
原创 QWidget For Android之QDialog中QLineEdit无法编辑问题
QDialog打开对话框时,QLineEdit输入框无法输入。QDialog模式冲突。
2024-05-21 11:05:40
557
翻译 QML type compiler
qmltc输出面向用户的代码。该代码应该由C++应用程序直接使用,否则您将看不到任何好处。此生成的代码实质上取代了QQmlComponent及其API,以便从QML文档创建对象。您可以在QML应用程序中使用qmltc和生成的输出基础知识下找到更多信息。
2023-10-19 21:57:37
205
原创 ARM编译Qt程序报错pinyin.cpp:1: error: stray ‘\357‘ in program
Qt程序用gcc编译可以通过,用arm-linux-gcc编译文件的时候出现异常错误。
2023-09-11 21:09:06
489
原创 没有与参数列表匹配的 重载函数 std::vector<>::erase(remove)
严重性 代码 说明 项目 文件 行 禁止显示状态。添加头文件#include ,排序算法引用这里的。vs2017编译std::vector之remove错误。
2022-11-11 09:52:41
3155
原创 Android Studio4使用Qt库生成so库
问题:运行app出现java.lang.UnsatisfiedLinkError: dlopen failed: library “libc++_shared.so” not found。5.将qt库添加进项目,把libQt5Core.so文件加入到对应cpuh目录lib(arm64-v8a,armeabi-v7a,x86)目录下,include文件夹加入到lib目录下。解决:将QtAndroid.jar添加到项目中,选择项目——》选中QtAndroid.jar文件右键-》Add As Library…
2022-10-15 21:07:04
1476
4
原创 QObject::connect: Cannot queue arguments of type ‘std::string’ (Make sure ‘std::string’ is registere
QObject::connect: Cannot queue arguments of type ‘std::string’(Make sure ‘std::string’ is registered using qRegisterMetaType().)
2022-09-23 16:23:51
857
原创 C#的List数据排序并获取排序后对应原始数据索引值
问题:需要一组List数据排序,并获取排序后对应原始的索引值 List<int> dataL = new List<int>() { 1,3, 2, 1,6,2,1 }; List<int> orderDataL = new List<int>(dataL); List<int> indexL = new List<int>(); #排序 orderD
2022-04-22 15:52:02
2317
原创 Qt读取WISE-4000系列Web读取方法(保存Cookies并访问IO Status)
Qt读取WISE-4000系列Web读取方法(保存Cookies并访问IO Status)环境:Qt5.12读取SeeddataQString WiseWeb::readSeeddataValue(){ QString seeddata=""; QUrl loginUrl = QUrl( QString("http://%1/config").arg(QString::fromStdString(ip))); request.setUrl(loginUrl);
2022-03-03 11:10:24
312
原创 Http访问失败解决
方式1:基于QT的QNetworkReply访问http//头文件#include <QtNetwork>#include <QtCore>class RequestManager: public QObject{ Q_OBJECTpublic: explicit RequestManager(QObject *parent = nullptr, QString header = QString("text/xml")); bool reque
2021-11-09 14:04:43
4905
原创 Qt for vs2017 grpc无法解析的外部符号错误
Qt for vs2017 grpc无法解析的外部符号错误错误:grpc.lib(alts_handshaker_client.obj)???? error: LNK2001: 无法解析的外部符号 “public: void __thiscall absl::lts_20210324::Mutex::Lock(void)” (?Lock@Mutex@lts_20210324@absl@@QAEXXZ)grpc.lib(alts_handshaker_client.obj) : error LNK2001
2021-08-31 13:56:56
1962
1
原创 QFile文件倒序读取
简介由于工作中日志文件写入是从后面按行添加进去的,而查看日志时,需要从最新信息开始查看,当文件太大时不可能将文件全部读取查看,便写出该功能。版本:Qt5.12//定义最大读取字节MaxReadByteSize;int MaxReadByteSize =1000; QFile file(filePath); bool isOK = file.open(QIODevice::ReadOnly); if(isOK == true){ if(file.size() > MaxReadByte
2021-06-30 11:39:11
1084
原创 Qt Creator无法使用快捷键
1.查看状态窗口显示为INSERT或COMMAND。2.这种模式是开启了VIM模式,按快捷键Alt+v切换成图2模式。
2020-11-05 17:24:06
1842
1
原创 Qt for android编译大坑之adb: failed to stat build-test-andoid5_12_8/android-build//build/
Run错误adb: failed to stat build-test-andoid5_12_8/android-build//build/或Build时错误:Android deploy settings file not found, not building an APK.起因:Qt for android 昨天还好好的,今天突然出错了。原因:Qt for andoird配置文件不太稳定。解决方法:左侧项目栏里->项目->编译&运行->取消编译-&...
2020-10-23 11:31:11
2653
5
原创 QML之SplitView分隔视图
SplitView { id: mainFrame anchors.fill: parent state:"main_editor" states:[ State { name: "select_menu" PropertyChanges { target: menuleft; color:.
2020-10-20 17:15:20
2020
原创 WinCHM Pro入门及注意事项(.chm帮助文件制作)
程序链接“http://www.softany.com/winchm/1:添加页面2.保存文件3.注意名称4.复制内容到编辑框内5.微调整数据位置6.复制Word文件的图片源缓存目录到项目图片img文件下,并更改代码图片路径。7.编辑文件完成后,编译CHM文件。...
2020-10-19 16:57:50
10553
5
原创 QtConcurrent多线程运行
#include <QtConcurrent>#include <QVector>void MainWindow::run(){ qDebug()<<"run start"; QVector<QFuture<void>> vector; QString msg="msg"; for (int i=0;i<4;i++) { QFuture<void> f = QtCo.
2020-09-22 16:00:12
606
2
原创 Qt for ios 暗黑模式
环境:Qt5.14.2, MAC10.15.0, IOS13系统#include <QObject> class BackgroundColor : public QObject{ Q_OBJECTpublic: explicit BackgroundColor(QObject *parent = nullptr);public slots: int getBackgroundColor();private:};#include "b.
2020-07-03 15:40:15
508
原创 QML之FileDialog 文件保存时,设置默认文件名称
使用版本:Qt5.12import Qt.labs.platform 1.1FileDialog { id: dialog_save title: "Save Dialog" currentFile: "file:///"+"name" fileMode:FileDialog.SaveFile nameFilters: ["Font f.
2020-05-18 10:16:35
3383
原创 QML做渐变色文字动画
Item { id: container width:200 height:200 Rectangle { id: gradientRect; width:80 height: 80 gradient: Gradient { ...
2020-01-03 15:28:25
1304
原创 自定义QML部件SpinBox
版本:Qt5.12由于QT官方提供的SpinBox部件,需要确认时才能更新里面数据,所以才自定义。import QtQuick 2.12import QtQuick.Controls 2.12SpinBox{ id:spinboxID height: parent.height width:parent.width-title_input.width-im...
2019-08-15 16:14:51
1539
原创 QML之Canvas实现标尺(刻度尺)方案
环境:Qt5.12.1,MinGW主要代码如下:import QtQuick 2.0import QtQuick.Controls 2.12Canvas{ z:5 id: canvas_ruler width: parent.width height: parent.height ...
2019-07-23 17:14:32
3461
原创 QT/QML添加,设置全局字体
//添加需要的字体int fontId = QFontDatabase::addApplicationFont(":/language/mbitmaproundhk-light.otf");QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);qDebug()<<"fontfamili...
2019-07-04 17:27:33
4750
原创 Qt5.9使用Crypto++库(VS2015)
环境:Qt5.9.7,vs2015,MSVC2015 32bit,cryptopp820.zip1、下载crypto++源码https://www.cryptopp.com/release820.html并解压到cryptopp文件夹。2、vs2015打开cryptopp目录下cryptest.sln工程文件,有4个项目 3、设置编译输出...
2019-06-13 16:32:35
3680
3
原创 python3使用Pycrypto进行RSA加解密
from Cryptodome.Cipher import AESfrom Cryptodome import Randomfrom binascii import b2a_hexfrom Cryptodome.PublicKey import RSAimport base64from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs...
2019-06-06 10:07:59
1686
原创 QT for windows文件夹图标设置
#include <QFileInfo>#include <QDir>#include <windows.h>#include <QSettings>#include <shlwapi.h>//#pragma comment(lib,"shlwapi.lib") VS模式引用库,minGw模式:pro文件添加:LIBS ...
2019-04-16 14:45:53
905
原创 Qt for ios 中使用zint动态库错误解决(Undefined symbols for architecture arm64: "_png_init_filter_functions_n)
环境:qt5.12,macOS10.14错误信息:Undefined symbols for architecture arm64: "_png_init_filter_functions_neon", referenced from: _png_read_filter_row in pngrutil.old: symbol(s) not found for archi...
2019-02-16 12:07:20
1098
原创 QML ListView滚动条自定义
环境Qt5.12核心代码ListView { id: listView focus: true anchors.fill: parent contentWidth: parent.width-30 ...
2019-01-28 13:58:58
1369
原创 QT for IOS 相机错误(requestService(): no service found for - "org.qt-project.qt.camera")
环境:qt5.12,xcode10,ios12qt实例如下:import QtMultimedia 5.8Item { width: 640 height: 360 Camera { id: camera imageProcessing.whiteBalanceMode: CameraImageProcessing.Whit...
2019-01-26 09:51:17
2177
Android Studio4之JAVA使用Qt库生成so库
2022-10-15
Qt5.12.10+ VS2017编译的oracle_32位驱动程序qsqloci.dll,qsqlocid.dll
2022-06-02
qtav的vs2017_32和vs2017_64动态库及示例DEMO
2020-11-18
Qt for IOS 获取暗黑模式状态
2020-07-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人