gfunk
22nd December 2006, 23:52
Under the docs for QLabel, http://doc.trolltech.com/4.2/qlabel.html, it talks about a new property called openExternalLinks, which
"Specifies whether QLabel (http://doc.trolltech.com/4.2/qlabel.html) should automatically open links using QDesktopServices :: OpenUrl (http://doc.trolltech.com/4.2/qdesktopservices.html#openUrl)() instead of emitting the anchorClicked() signal."
Is this for real? Is it saying that I can set up a QLabel to be clickable, like a web-browser link, and perhaps have the mouse cursor change when it hovers over the link? If so, how do I set the text so that it can hyperlink to a webpage? I tried something like
<a href=\"http://www.yahoo.com\">yahoo.com</a> but it wouldn't show up as a link, nor could I click on it.
"Specifies whether QLabel (http://doc.trolltech.com/4.2/qlabel.html) should automatically open links using QDesktopServices :: OpenUrl (http://doc.trolltech.com/4.2/qdesktopservices.html#openUrl)() instead of emitting the anchorClicked() signal."
Is this for real? Is it saying that I can set up a QLabel to be clickable, like a web-browser link, and perhaps have the mouse cursor change when it hovers over the link? If so, how do I set the text so that it can hyperlink to a webpage? I tried something like
<a href=\"http://www.yahoo.com\">yahoo.com</a> but it wouldn't show up as a link, nor could I click on it.