for example, we overwrite the fonction void mousePressEvent(QMouseEvent *event) for a class.
if we write: event->accept()
it means that this event is handled here, do not pass it to others.
if we write: event->ignore()
it means that we do nothing here, try to pass this event to other handlers.
if I am right, plz tell me:
who are other handlers? the base class?
if it is the base class, well,
if(WeDoNothing)
{event->ignore();}
and
if(WeDoNothing)
{BaseClass:mousePressEvent(event);}
are they the same?
can I write like this:
event->accept();
BaseClass::mousePressEvent(event);
u see, i m confused by accept() ignore() and BaseClass::mousePressEvent(event)
plz help me.
thx in advance.
↧