Reimplement QListWidget::mouseMoveEvent()
Reimplement QListWidget::mouseMoveEvent()
Thanks for reply.
Actually I can Implement the MouseMoveEvent in the form but I donot know how to implement it in the ListWidget.
and what I have to do with in mousemoveevent to avoid drag selection of mouse.
Thanks
The default implementation of QListWidget::mouseMoveEvent() does what you want to avoid. Therefore you must either subclass QListWidget and override mouseMoveEvent() with an empty implementation (just to avoid the base class from doing what it does by default) or alternatively install an event filter and filter the corresponding event out so that QListView implementation never receives the event.
J-P Nurmi
Thanks for reply.
But Actually I donot know how to subclass QListWidget from MainWindow class or some other class.
plz give some sample code for that if you can.
Thanks.
Have a look on dir chap09 Choise Projekt on code sample from QT4 German Book.... from Mister Blanchette.... get tar on http://ppk.ciz.ch/qt_c++/qt4Book_german.tar.gz .... other sample here on this forum search a link from developer day 2006 ....
Bookmarks