为QLabel添加链接需要使用css标签。
在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>
实现效果:

© 版权声明
文章版权归作者所有,未经允许请勿转载。如内容涉嫌侵权,请在本页底部进入<联系我们>进行举报投诉!
THE END

















暂无评论内容