In the "About box" of my software, I used a QGraphicsTextItem
to show the about-text.
This text contains hypertext links (in the form of: <a href="http://some.random.site">link</a>
).
The item shows up properly (hypertext links are blue and underlined). However, when I click on them, nothing happens.
Here is how I created the QGraphicsTextItem
:
d_about_text_item = new QGraphicsTextItem;
d_about_text_item->setTextInteractionFlags(Qt::TextBrowserInteraction);
d_about_text_item->setHtml(aboutText());
As I understand the Qt documentation, the call to setTextInteractionFlags
should allow me to handle special hypertext links click events.
Is there anything else I should do to be able to click on the links and show up the linked page in the default system browser ?