[Ltilib-devel] Catch mouse button pressed events in viewer
Status: Beta
Brought to you by:
alvarado
From: Per R. <pe...@kt...> - 2008-03-05 22:09:23
|
How do I catch mouse button pressed events in viewer? I tried to reimplement viewer::mainWindow::mouseButtonHandler in a mainWindow child class, and viewer::ensureWindow to create objects of the new class, in a new viewer child class, but I failed since ensureWindow isn't virtual. My only solution right now is to copy and modify viewer to notify my program of key pressed events, or to replace the show and ensureWindow functions, but these solutions are very ugly. |