摘要: vscode远程连接需要输入密码,比较烦,可用ssh公钥免驱密码输入 参考 https://zhuanlan.zhihu.com/p/425641299 在windows上的配置 步骤一:进入C:\Users\你的用户名\.ssh,查看是否已经有下面两个文件: id_rsa、id_rsa.pub 如 阅读全文
posted @ 2025-10-30 15:56 小城熊儿 阅读(5) 评论(0) 推荐(0)
摘要: python 运行venv,新建终端出现错误如下: & : 无法加载文件 D:\rys_info\16_ros2\BSD\monodepth2\.venv\Scripts\Activate.ps1,因为在此系统上禁止运行脚本。有关详细信息, 请参阅 https:/go.microsoft.com/f 阅读全文
posted @ 2025-10-23 10:46 小城熊儿 阅读(2) 评论(0) 推荐(0)
摘要: 复制别人的虚拟机(ubuntu2204),无法联网,不一定是本地的问题,可能是这个虚拟机的问题 参考 https://zhuanlan.zhihu.com/p/674945911 sudo ip link set ens37 up sudo dhclient ens37 sudo ip link s 阅读全文
posted @ 2025-10-07 17:54 小城熊儿 阅读(3) 评论(0) 推荐(0)
摘要: #include <QTableWidget> class TablewidgetLineDropFilter : public QObject { Q_OBJECT public: explicit TablewidgetLineDropFilter(QTableWidget* _box,QObj 阅读全文
posted @ 2025-10-03 11:29 小城熊儿 阅读(11) 评论(0) 推荐(0)
摘要: demo #define mydebug printf("%s: %s:line %d\n", __FILE__, __func__, __LINE__); #define myDebugMsg(msg) printf("%s: %s:line %d %s:%s\n", __FILE__, __fu 阅读全文
posted @ 2025-09-05 15:34 小城熊儿 阅读(51) 评论(0) 推荐(0)
摘要: 事件过滤 #include <QListWidget> class ObjectMouseButtonPressed : public QObject { Q_OBJECT public: explicit ObjectMouseButtonPressed(QObject *parent = nul 阅读全文
posted @ 2025-09-01 16:13 小城熊儿 阅读(17) 评论(0) 推荐(0)
摘要: //qcombox的font设置特殊,看情况调用,建议字号设置为10 #define setWidgetFontSize(w,s) if(1){QFont f=w->font();f.setPointSize(s); w->setFont(f);} #define setWidgetFontView 阅读全文
posted @ 2025-08-15 09:46 小城熊儿 阅读(18) 评论(0) 推荐(0)
摘要: 查询信号 echo -ne "AT+CSQ\r\n" | busybox microcom -t 1000 /dev/ttyusb1 查询基站位置 echo -ne "AT+CLBS=4\r\n" | busybox microcom -t 3000 /dev/ttyusb1 查询版本信息 echo 阅读全文
posted @ 2025-06-25 10:38 小城熊儿 阅读(9) 评论(0) 推荐(0)
摘要: //鼠标滚动的事件过滤 class ObjectIgnorQComboBoxWheel : public QObject { Q_OBJECT public: explicit ObjectIgnorQComboBoxWheel(QObject *parent = nullptr) : QObjec 阅读全文
posted @ 2025-06-23 18:42 小城熊儿 阅读(108) 评论(0) 推荐(0)
摘要: qt main函数的一些注意点 #include "mainwindow.h" #include <QApplication> #include <QDesktopWidget> #include <QScreen> int main(int argc, char *argv[]) { // QAp 阅读全文
posted @ 2025-06-05 18:23 小城熊儿 阅读(17) 评论(0) 推荐(0)