[Qt-interest] Mouse Press Event on GroupBox
Ulf-Alexander v. Ceumern-Lindenstjerna
ceumern at vrmagic.com
Wed Feb 3 16:49:19 CET 2010
Either that or use the standard QGroupBox and install an event filter.
http://doc.trolltech.com/4.6/qobject.html#installEventFilter
Cheers, Ulf
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Andre Somers
> Sent: Wednesday, February 03, 2010 11:00 AM
> To: Qt-interest
> Subject: Re: [Qt-interest] Mouse Press Event on GroupBox
>
> Sambhav wrote:
> > Hi,
> >
> > I need to call a function when mouse is pressed over the GroupBox
> > widget. How can I do this ?
> >
> Subclass it, and reimplement the mousePressEvent to do what you want,
> or
> to emit a signal you defined yourself in your subclass, and connect to
> that.
>
> André
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list