[SOLVED] Set table view column full of clickable icons
-
Brief description: http://i.imgur.com/ukAQNaI.png
I have model whose n-th column have interesting me number. Instead of displaying these numbers in tableView i want in place of text add clickable icon If number is set, or not if number isn't set. Fiddling with
Qt::DisplayRole
in model doesn't seem to be what i want.
Is customQItemDelegate
answer to my problems?
How to change mouse cursor to this fancy click_me-hand when mouse is over that icon? -
Hi
I would say a Delegate would be the way to do it.
Have a look at
"Star Delegate Example"For your fancy hand, you can use
QApplication::setOverrideCursor(QCursor(Qt::PointingHandCursor));
QApplication::restoreOverrideCursor();Its also possible via the model
http://daniel-albuschat.blogspot.dk/2009/09/setting-mouse-cursor-for-qts-item-views.html