How do i make my text in QStandardItem to link to open default browser?
General and Desktop
2
Posts
2
Posters
2.0k
Views
1
Watching
-
wrote on 8 Jul 2011, 13:14 last edited by
Im using QStandardItem as my model items . i was reading about QStyledItemDelegate to manipulate the item's but im not sure it the right answer to my problem . and if it is .
how should my paint method should look like to be able me to make the text clickable
and open the pc default browser with a link -
wrote on 8 Jul 2011, 14:34 last edited by
One of the possible solutions is to handle the click event properly and use the QDesktopServices::openUrl() with the text from your item.
2/2