原地址:http://blog.csdn.net/fjb2080/article/details/8136084
1、用qlabel。
QLabel
label->setText(tr("<a href =" blog.csdn.net/fjb2080 ">google</a>"));
label->setOpenExternalLinks( true );
2、
QDesktopServices::openUrl("blog.csdn.net/fjb2080");
原地址:http://blog.csdn.net/fjb2080/article/details/8136084
1、用qlabel。
QLabel
label->setText(tr("<a href =" blog.csdn.net/fjb2080 ">google</a>"));
label->setOpenExternalLinks( true );
2、
QDesktopServices::openUrl("blog.csdn.net/fjb2080");
转载于:https://www.cnblogs.com/lanye/p/3533759.html