Hyperlink with image in one QTableView cell

I have a QTableView with custom model and delegate. Task is to create cell which will contain image and hyperlink. By clicking on image user will copy hyperlink to clipboard, and by clicking of hyperlink user should open link in browser.

Is it a possible task?


Sure it is possible.

One of the way to solve this is to use call setIndexWidget() of view where you bypass QLabel with image or hyperlink or both using html (rtf).

Another way is to have own subclassed QItemDelegate in which you can reimplement createEditor() and set persistent editor with openPersistenEditor().

Need Your Help

How to send file in parts using header "Range"?

java android networking connection android-networking

I would like to send big file by dividing it to small parts and send them separately.

Delete single character rows in a text file

linux command-line sed awk

I have a text file with about 8 million rows in it. I need to remove all the rows with a single character in them. For example