PDA

View Full Version : Disable QListView scroll event



migel
27th May 2011, 12:26
I have QTreeView and every second row QListView with items. Now I can't scroll QTreeView because QTListView is taking the event over.
Is it possible to disable the scrolling on the list ??

Santosh Reddy
27th May 2011, 18:32
have a CuctomListView and then ignore the mouse scroll event, so that is passed on to the parent widget


void CuctomListView::wheelEvent(QWheelEvent* event) //virtual protected in QWidget
{
event->ignore();
}