thank’s in advance for your time, any help would be greatly appreciated.
My issue
I have a QListView
child class and a QAbstractItemModel
child class say MyModel
. I want tooltips for my MyModel
items, in MyModel::data
I return a QVariant containing a QString for Qt::ToolTipRole
. I do get my tooltip displayed and I’m happy with their content and style but they disapear after only 2 or 3 seconds (definetly too brief to read), I want them to stay displayed as long as I don’t move the mouse but a long enough time as five minutes would be great too.
What I’ve tried
- I’ve tried
QWidget::setTooltipDuration()
on every related QWidget I could think of. - I’ve searched for
Qt::ItemDataRole::ToolTipPropertyRole
on the internet because I found it next toQt::ItemDataRole::ToolTipRole
.
Do you know how to achieve the behavior I desire? I would be very thankful 🙂