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

sudhish kapoor kapoorsudhish at gmail.com
Thu May 19 10:30:54 CEST 2011


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> 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
> 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/20110519/839bf65b/attachment.html 


More information about the Qt-interest-old mailing list