PDA

View Full Version : How to create a HyperLink in Qt?



vishal.chauhan
27th March 2007, 13:53
Hi All,

I m using Qt 4.2.2 on my Intel Mac.

I want to create a Link so that If I clicked that Link the Corresponding URL would open.
If any body knows how to create HyperLink in Qt plz help me.

thanks.

wysota
27th March 2007, 14:03
QLabel *label = new QLabel(this);
label->setText("<a href=\"http://www.qtcentre.org\">QtCentre</a>");
label->setOpenExternalLinks(true);