上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: https://rufus.ie/zh/ 阅读全文
posted @ 2022-03-30 16:26 simp00 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在主头文件中包含这个 然后 含有中文的位置使用utf8 with bom即可 #pragma execution_character_set("utf-8") 添加bom方法 阅读全文
posted @ 2022-03-30 14:29 simp00 阅读(107) 评论(0) 推荐(0) 编辑
摘要: StackDlg.h // // Created by simp on 2022/3/29. // #ifndef STACKEDWIDGET_STACKDLG_H #define STACKEDWIDGET_STACKDLG_H #include <QListWidget> #include <Q 阅读全文
posted @ 2022-03-29 16:45 simp00 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 停靠窗口QDockWidget类也是应用程序中经常用到的,设置停靠窗口的一般流程如下。 (1)创建一个QDockWidget对象的停靠窗体。 (2)设置此停靠窗体的属性,通常调用setFeatures()及setAllowedAreas()两种方法。 (3)新建一个要插入停靠窗体的控件,常用的有QL 阅读全文
posted @ 2022-03-29 13:46 simp00 阅读(991) 评论(0) 推荐(0) 编辑
摘要: 使用QSplitter进行窗口分割,使用 Horizontal 创建水平的分割窗口textleft 创建一个子分割窗口splitterRight 放在进去默认就会到右侧,这里继续设置一下setOpaqueResize函数设置右侧的拖拽不刷新只显示一个粗线条, 在这个右侧的子分割窗口中添加两个text 阅读全文
posted @ 2022-03-29 11:02 simp00 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: setWindowFlags(Qt::Tool); 阅读全文
posted @ 2022-03-28 19:27 simp00 阅读(321) 评论(0) 推荐(0) 编辑
摘要: Item主要的角色及其描述 常量 描述 Qt:DisplayRole 显示文字 Qt::DecorationRole 绘制装饰数据(通常是图标) Qt:EditRole 在编辑器中编辑的数据 Qt:ToolTipRole 工具提示 Qt:StatusTipRole 状态栏提示 Qt: WhatsTh 阅读全文
posted @ 2022-03-28 19:12 simp00 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 我的脚本在当前安装的目录下面名为report3.py 使用usr/bin/python3来运行可以参照下面的ExecStart 修改那里就行了 #!/bin/bash echo 当前进程id为 $$ SERVICE_NAME="report3.service" # 不能乱加空格 readonly S 阅读全文
posted @ 2022-03-21 16:53 simp00 阅读(89) 评论(0) 推荐(0) 编辑
摘要: import time import socket import uuid import urllib import urllib3 from urllib import request, parse import json def get_host_ip(): """ :return: ip "" 阅读全文
posted @ 2022-03-07 20:06 simp00 阅读(199) 评论(0) 推荐(0) 编辑
摘要: import time import socket import uuid import urllib import urllib2 import json def get_host_ip(): """ :return: ip """ try: s = socket.socket(socket.AF 阅读全文
posted @ 2022-03-03 19:39 simp00 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页