Neutree / COMTool

Cross platform communicate assistant(Serial/network/terminal tool)( 跨平台 串口调试助手 网络调试助手 终端工具 linux windows mac Raspberry Pi )支持插件和二次开发
https://neucrack.com/p/186
GNU Lesser General Public License v3.0
1.85k stars 338 forks source link

请求支持ARM版本的MAC #105

Closed lihk11 closed 9 months ago

lihk11 commented 1 year ago

如题,请求支持M1 M2系列的mac

Neutree commented 1 year ago

哦对哦 有空弄弄

Neutree commented 1 year ago

看了一下,貌似GitHub action 还没看到 arm版本的机器 https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

wh201906 commented 1 year ago

按理说苹果的ARM机器可以直接运行x86程序的啊,Rosetta会翻译指令的

huhu6608 commented 1 year ago

m1 可以运行的

huhu6608 commented 1 year ago

最大的问题是。。。调不了字体大小,费眼 WX20230813-003310@2x

/

wh201906 commented 1 year ago

最大的问题是。。。调不了字体大小,费眼 WX20230813-003310@2x

/

@huhu6608 这个问题和mac无关吧 请参考#51

Neutree commented 1 year ago

最大的问题是。。。调不了字体大小,费眼 WX20230813-003310@2x

/

这个应该是高分屏没适配的问题,我手里没有这样的设备,所以没法优化

huhu6608 commented 1 year ago

放弃了,qss里找了半天,太多了。。没找到

wh201906 commented 1 year ago

如果只是改字体的话可以试一下QApplication的setFont()方法? https://github.com/wh201906/SerialTest/blob/5f304cfc3df8e74551dc26a15eff1b27392f984f/src/settingstab.cpp#L151-L161

高分屏适配可以试一下QApplication的setAttribite(Qt::AA_EnableHighDpiScaling) https://github.com/wh201906/SerialTest/blob/5f304cfc3df8e74551dc26a15eff1b27392f984f/src/main.cpp#L26

以上是C++的代码,不过pyqt应该也有对应的代码