PDA

View Full Version : mousePressEvent Problem in Qt4



hotjava
9th November 2008, 08:43
Hi

I am beginner in Qt.
I have 2 class in my own project.
one of this class named ClassDock
this class inherit from QDockWidget
and is my custom DockWidget class
i need to handle mousePressEvent in this class
how i can do this?

thanks.

aamer4yu
9th November 2008, 09:14
Override the QWidget::mousePressEvent :)

hotjava
9th November 2008, 09:29
Thank You My Dear Friend
I Have Override Same Function in my ClassDock class
But When i click on a dock object (instanced of my ClassDock)
the mousePressEvent is not call

what is my problem?
thanks.