会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Txwtech
鸿蒙系统APP开发,QT,C#,python,视觉开发 cdtxw@foxmail.com
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
56
57
58
59
60
61
62
63
64
···
127
下一页
2023年11月14日
QT windows与linux之间sokcet通信中文乱码问题解决方法
摘要: linux发送与接收都转码utf-8: tcpClient ->write( send_msg.toUtf8());//解决乱码,发送转码 接收: QByteArray buffer = tcpClient->readAll(); if(!buffer.isEmpty()) { // ui->pla
阅读全文
posted @ 2023-11-14 11:34 txwtech
阅读(170)
评论(0)
推荐(0)
2023年11月10日
QT5 的TCP和UDP 网络通信 <QTcpSocket>
摘要: QT5 的TCP和UDP 网络通信 <QTcpSocket> 首先需要 在项目中引入网络模块,pro文件中添加 QT += core gui network #include <QTcpServer> #include <QTcpSocket> 翻译 搜索 复制
阅读全文
posted @ 2023-11-10 12:33 txwtech
阅读(140)
评论(0)
推荐(0)
2023年11月9日
linux qt5 对话框窗口解决中文乱码显示
摘要: void MainWindow::on_action_exit_triggered(){ QString aa = QString::fromLocal8Bit("退出"); QMessageBox::information(this,aa,QString::fromLocal8Bit("确认退出吗
阅读全文
posted @ 2023-11-09 15:27 txwtech
阅读(61)
评论(0)
推荐(0)
qt5 窗口启动居中显示
摘要: main.cpp里面修改 #include "mainwindow.h" #include <QApplication> #include <QScreen> #include <QDesktopWidget> int main(int argc, char *argv[]) { QApplicat
阅读全文
posted @ 2023-11-09 15:09 txwtech
阅读(155)
评论(0)
推荐(0)
2023年10月30日
c#读取设备PLC状态慢-webservice
摘要: 设备webservice服务没有开,主机关机,无响应导致的 可屏蔽机台,不扫描未启用的设备 翻译 搜索 复制
阅读全文
posted @ 2023-10-30 13:05 txwtech
阅读(119)
评论(0)
推荐(0)
PLC长地址的问题--就是地址超过了两个字节的情况解决方法
摘要: 就是地址超过了两个字节的情况 意思是PLC里面一个地址想放超出65535的数据 地址这里超出了,写不进去的 长地址的问题 那个地址PLC折叠后,地址添加页号 换算成地址偏移后,需要添加这个页号 台达PLC 翻译 搜索 复制
阅读全文
posted @ 2023-10-30 09:51 txwtech
阅读(174)
评论(0)
推荐(0)
qt QSS样式使用方法
摘要: 头文件添加: private: Ui::MainWindow *ui; QFile *qssFile; int id1,id2,id3; 构造函数中: qssFile= new QFile(":/new/qss/aa.qss",this); qssFile->open(QFile::ReadOnly
阅读全文
posted @ 2023-10-30 08:11 txwtech
阅读(58)
评论(0)
推荐(0)
2023年10月12日
鸿蒙开发DevEco Studio下载与安装软件
摘要: HarmonyOS Developer > 文档 > 指南 > 工具 下载与安装软件 DevEco Studio支持Windows和macOS系统,下面将针对两种操作系统的软件安装方式分别进行介绍。 Windows环境 运行环境要求 为保证DevEco Studio正常运行,建议电脑配置满足如下要求
阅读全文
posted @ 2023-10-12 13:33 txwtech
阅读(382)
评论(0)
推荐(0)
2023年10月10日
int[][]和Int[,]的行和列表示含义
摘要: 1.int[][]是嵌套数组,即数组的数组,只能算是一维数组,可以理解为一维数组的值为数组,且作为值的数组长度不必统一,如下: int[][] a=new int[][] { new int[3] {0,0,0 }, new int[4]{12,13,1,2 } }; 如上数组,数组长度为2,仅包含
阅读全文
posted @ 2023-10-10 15:07 txwtech
阅读(608)
评论(0)
推荐(0)
2023年10月9日
C#OpenCvSharp 实现bitmap与mat的格式相互转换
摘要: //转为 bitmap:Bitmap map = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat); process_pictureBox.Image = map;//Image img 转为MatBitmap bitmap = new Bit
阅读全文
posted @ 2023-10-09 17:19 txwtech
阅读(1954)
评论(0)
推荐(0)
上一页
1
···
56
57
58
59
60
61
62
63
64
···
127
下一页