How do i make my text in QStandardItem to link to open default browser?



  • 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



  • One of the possible solutions is to handle the click event properly and use the QDesktopServices::openUrl() with the text from your item.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.