[Qt-interest] Finding if the widget is completely visible or not

Chitturi, Devendra_NagaKumar Devendra.NagaKumar.Chitturi at deshaw.com
Fri May 20 08:10:19 CEST 2011


> What you can try is using QWidget::isActiveWidow(); which tells you if the keyboard has focus or not
Thanks for your reply, but the requirement is know if the widget is visible or not irrespective of focus.


From: sudhish kapoor [mailto:kapoorsudhish at gmail.com]
Sent: Thursday, May 19, 2011 2:01 PM
To: Chitturi, Devendra_NagaKumar
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] Finding if the widget is completely visible or not

What you can try is using QWidget::isActiveWidow(); which tells you if the keyboard has focus or not.


On Thu, May 19, 2011 at 1:20 PM, Chitturi, Devendra_NagaKumar <Devendra.NagaKumar.Chitturi at deshaw.com<mailto:Devendra.NagaKumar.Chitturi at deshaw.com>> wrote:
Hi all,

Our requirement is to find out if the widget in a window is completely visible or not.

Suppose, one widget W1 is added to a window/panel/dialog Win1, and some other window/panel/dialog is on top of the window Win1 covering the widget W1.  How can I find if the W1 is covered by any other window or not?  Here, the other window can be from the same application or from some other application.  I tried QWidget::visibleRegion(), but it looks like this API gives information if a widget is covered by any other widget in the same window.
Any suggestions would be greatly appreciated.


Regards,
Devendra



_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com<mailto:Qt-interest at qt.nokia.com>
http://lists.qt.nokia.com/mailman/listinfo/qt-interest



--
Regards,
Sudhish Kapoor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110520/446bc9a7/attachment.html 


More information about the Qt-interest-old mailing list