Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

串口接收区文字尺寸无法通过qss文件调整 #132

Open
liyang5945 opened this issue Apr 3, 2024 · 1 comment
Open

串口接收区文字尺寸无法通过qss文件调整 #132

liyang5945 opened this issue Apr 3, 2024 · 1 comment

Comments

@liyang5945
Copy link

liyang5945 commented Apr 3, 2024

我使用的是17寸1080P的笔记本电脑,感觉串口接收区的文字太小了,尝试修改qss文件来调整文字大小,修改的应该是正确的位置,背景色改为#3a3a55已经生效,尝试添加font-size: 20px; 字体没有变化,另外希望添加类似ubuntu终端类似的功能,按住ctlt+调整鼠标滚轮来调节文字大小

QTextEdit, QPlainTextEdit, QListView {
    background-color: #3a3a55;
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    background-attachment: scroll;
    font-size: 20px;
}

20240403_163944

@Neutree
Copy link
Owner

Neutree commented Apr 7, 2024

貌似qt的qtextedit 比较特殊 qss 不支持吧,或者我在代码里面调用了代码手动设置了字体样式,要急着改的话可以尝试搜索一下,确实加一个能调整大小的比较好,之后有时间我加吧,也欢迎提交PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants