I have a delegate that gets instantiated when double clicking on an item in a QTreeWidget.
I would like to pop up a tooltip for few seconds and that it slowly disappears afterwards.
Right now I'm doing this:
{
...
}
QWidget * Test::createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const
{
...
QToolTip::showText(QCursor::pos(), "test");
}
To copy to clipboard, switch view to plain text mode
The tooltip shows up for a second and disappears. How would I go about doing that?
Thanks
Bookmarks