给QLabel添加链接并自定义样式

为QLabel添加链接需要使用css标签。
在QLabel上右键,选择“改变多文本信息…”

给QLabel添加链接并自定义样式

<html><head/><body><p>
<a style=" text-decoration: none;" href="https://github.com/elephantrobotics/myCobot/tree/main/Arduino">
<img src=":/img/res/Topbar/arduino.png" width = "120" height = "120"/><br/><br/>
<span style=" border : 0px solid black;background : white;font-size: 16px; font-family:DINpro;text-alignment: bottom; padding: -20 0 0 0; color: #333333">arduino</span></a></p></body></html>

实现效果:

给QLabel添加链接并自定义样式

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容