[mythtv] Mouse events in MyThemedDialog
thor
mythtv at lamedomainname.com
Mon May 10 12:54:41 EDT 2004
> Ok, the ++ part of my C knowledge is a bit rusty but as far as I understand
> MythMainWindow extends QDialog, MythDialog extends QFrame and
> MythThemedDialog extends Mythdialog.
> So as for 'inheritance' I don't see how MythThemedDialog could inherit
> anything from MythMainWindow?
MythThemedDialog inherits from MythDialog, which inherits from QFrame.
I just tried putting mousePressEvent(QMouseEvent*) calls into
MythThemedDialog, and it does work. The _only_ place it doesn't work is
the mmusic playback screen. Not quite sure what the problem is there,
but should not be too difficult to solve.
Of course by "working", I mean I can have a one line function that
prints "A mouse was pressed at x,y". There would still be a lot of logic
to figure which MythUI container the event happened in, and then which
MythUI widget is within the co-ordinates and could possible do something
with a mouse press.
- thor
More information about the mythtv-dev
mailing list