iwatsu
8th February 2012, 18:35
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");
}
The tooltip shows up for a second and disappears. How would I go about doing that?
Thanks
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");
}
The tooltip shows up for a second and disappears. How would I go about doing that?
Thanks