Text {
id: click2
text: qsTr("2.For other software or product ristration issues,") + qsTr('<html></style><a href="http://baidu.com"><font color=\"#30BF78\">please contact us>></a></html></font>')
onLinkActivated: Qt.openUrlExternally(link)
anchors.top: click1.top
anchors.topMargin: click1.contentHeight + 10
anchors.left: click1.left
anchors.right: click1.right
wrapMode: Text.WordWrap
font.pixelSize: 12
}
onLinkActivated: Qt.openUrlExternally(link)这个很关键需要加上才能完成点击跳转连接
2.如果要追加改变字体的颜色
先在最外层定义主题颜色属性
然后在颜色中使用占位符