View Full Version : Disable QListView scroll event
migel
27th May 2011, 11: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, 17: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();
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.