摘要: setGeometry是相对于父窗体来说的一种对子窗体进行位置设置的方法。当我用在不同的窗体的时候发现有不同的形式 QMainWindow 和QWidget都是相对父窗体来说的,可是QDialog用上这个设置位置的函数,却是相对于桌面而言的。但是按照道理,他们都是继承的QWidget,setGeom 阅读全文
posted @ 2024-03-08 14:00 北ღ冥 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 例子:__align(),__attribute((aligned (n))),#pragma pack(n) #include <stdio.h> main() { struct A { int a; char b; short c; }; struct B { char b; int a; sh 阅读全文
posted @ 2023-11-29 10:53 北ღ冥 阅读(18) 评论(0) 推荐(0) 编辑
摘要: C 语言中"##“和”#"用法解密一、概述C语言中指针和宏是很容易让人用错的,特别是指针,即使工作多年的老鸟也很有可能在这上面马失前蹄。当然了宏也不例外,宏中有一些有意思的用法,如果我们没有了解到或者不是非常清楚的话,就很容易犯错或者说是看不懂别人的代码。下面一起来看一下C语言中的"##“和”#"的 阅读全文
posted @ 2023-11-29 09:45 北ღ冥 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 编译脚本 ./configure -prefix /opt/qt-5.12.2 \ -qmldir /opt/qt-5.12.2/qml2 \ -plugindir /opt/qt-5.12.2/plugins \ -xplatform linux-arm-gnueabi-g++ \ -openso 阅读全文
posted @ 2021-06-28 08:28 北ღ冥 阅读(256) 评论(0) 推荐(0) 编辑
摘要: import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt import xlrd import xlwt import tki 阅读全文
posted @ 2021-01-20 14:27 北ღ冥 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /温度控制typedef struct{ u8 HeatEnable; //加热使能 float SetPoint; //设定值 float Kp; //比例系数 float Ki; //积分系数 float Kd; //微分系数 float PrevError; //最后第二次误差数Er[-2] 阅读全文
posted @ 2020-09-22 19:59 北ღ冥 阅读(864) 评论(0) 推荐(0) 编辑
摘要: Sub PasswordBreaker() Dim i As Integer, j As Integer, k As Integer Dim l As Integer, m As Integer, n As Integer Dim i1 As Integer, i2 As Integer, i3 A 阅读全文
posted @ 2020-08-08 09:23 北ღ冥 阅读(609) 评论(0) 推荐(0) 编辑
摘要: http://download.qt.io/archive/ QT相关软件下载地址 https://sourceforge.net/projects/mingw-w64/ 阅读全文
posted @ 2020-07-23 09:28 北ღ冥 阅读(102) 评论(0) 推荐(0) 编辑
摘要: uic mainwindow.ui -o mainwindow.h 阅读全文
posted @ 2020-06-04 16:04 北ღ冥 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 导出依赖包 pip freeze > user.txt 依赖包 安装 pip install -r user.txt 阅读全文
posted @ 2020-06-01 20:28 北ღ冥 阅读(204) 评论(0) 推荐(0) 编辑