I have a QPlainTextEdit and have some words highlighted in it now I want when I hover over it with the mouse it show me a tooltip that has description or something like that about this highlighted word something like this in QT IDE
but I don't know how to start this so any idea, code or similar project to check this.
For this case I will create a class that inherits from QPlainTextEdit, reimplement the
event()
method and enable mouse tracking withsetMouseTracking()
plaintextedit.h
plaintextedit.cpp
Complete Code: Here