[Qt-interest] Detecting mousePressEvents in a child widget
Ankit Agarwal
ankit17.ag at gmail.com
Mon Dec 15 07:20:58 CET 2008
Hi,
I think that u can emit a signal when ever there is a click on the label
which is catpured by the MainWindow. Now MainWindow calls a slot which opens
a child widget.
On Sat, Dec 13, 2008 at 12:40 AM, Khizer Kapadia
<khizerkapadia at hotmail.com>wrote:
> Hi,
> I have a widget (lets call it MainWindow) containing a QScrollView (apart
> from several QPushButtons)
> QScrollView itself contains a QLabel
>
> What I am trying to achieve is, that whenever the user clicks on that
> QLabel, I want to hide or show the child widgets of MainWindow. I was
> initially of the idea that clicks within the child widgets are also taken to
> be clicks by the parent widget. I read the documentation and saw
> underMouse(), but I dont understand how that will work, since a click on the
> QLabel wont be detected MainWindow, so no question of returning which widget
> lies under it
>
> Thank you for your time.
>
> ------------------------------
> Send e-mail faster without improving your typing skills. Get your Hotmail(R)
> account.<http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081215/32239f56/attachment.html
More information about the Qt-interest-old
mailing list