Unsolved how to pop-up the QlistWidget item on hovering???
-
hi,
how to display a QListwidget content on mouse hovering.can i do it using style sheet ??
.
I have to do like the above image .please suggest me..
thank you -
-
Requires Qt >= 5.11
QObject::connect(listWidget->model(),&QAbstractItemModel::dataChanged, [=](const QModelIndex& topLeft,const QModelIndex& bottomRight, const QVector<int>& roles){ if(!roles.isEmpty() && !roles.contains(Qt::DisplayRole)) return; for(int i=topLeft.row();i<=bottomRight.row();++i){ const QModelIndex tempIdx = listWidget->model()->index(i,0); listWidget->model()->setData(tempIdx,tempIdx.data(Qt::DisplayRole),Qt::ToolTipRole); } });