python - How to add toolTip for objects in QTextBrowser? -


i'm adding paragraphs in qtextbrowser , want add tooltip them. tried using hover qtextbrower doesn't support hover think.

i'm able call function on clicking though.

edit:seperate tooltip each one.

i don't know how you're adding paragraphs, if you're using markup solution simple: use title attribute.

    <p title="tootip">some block of text</p> 

however, if paragraphs being added programmatically, can use qtextcharformat, has settooltip method.


Comments