background picture of the home page

Think in Code

QWidget 和 QML窗口 相互嵌套

QWidget 和 QML窗口 相互嵌套 QWidget界面和QML窗口相互嵌套都是需要借助 quickwidgets 这个模块中的类 我这里使用的是QQuickWidget,这个类是继承QWidget的,就和 QWidget 一样使用就行 使用布局控制 控件 的位置 1. C++代码 #inclu

thumbnail of the cover of the post

Go生成库给C C++

Go生成库给C/C++ Windows main.go package main /* #include <stdlib.h> */ import "C" import ( "net" "unsafe" ) //export GetMacAddr

thumbnail of the cover of the post

Qt Mac OS 应用图标生成

Qt Mac OS 应用图标生成 mkdir icons.iconset sips -z 16 16 pic.png --out icons.iconset/icon_16x16.png sips -z 32 32 pic.png --out icons.iconset/icon_

thumbnail of the cover of the post

proxy iptables

proxy iptables dnsmasq 配置 https://github.com/cokebar/gfwlist2dnsmasq 通过 dnsmasq 将dns请求转发到程序中,dnsmasq_gfwlist.conf 里的端口和程序监听端口保持一致 vi /etc/dnsmasq.conf

thumbnail of the cover of the post