PDA

View Full Version : Allows HTML urls in QTableWidget and QLabel



petrusPL
9th January 2011, 13:08
Hello.
Is it possible to allow HTML urls in QTableWidget ?

And i have problem with urls in QLabel
i put text
<a href=http://somepage.pl/forum/temat/?id=2345>http://somepage.pl/forum/temat/?id=2345</a> and setOpenExternalLinks to true but when i clicked on the link it was open without id value only
http://somepage.pl/forum/temat/?id
What i do wrong ?

PS. Sorry for my English but i`m from Poland

tbscope
9th January 2011, 13:28
You need to encode the url.

The "=" character should be replaced by a html code (decimal ascii value)

http://doc.qt.nokia.com/4.7/qurl.html