[Qt-interest] Finding if the widget is completely visible or not
sudhish kapoor
kapoorsudhish at gmail.com
Fri May 20 08:29:40 CEST 2011
How bout using the straight function,
QWidget <qwidget.html> * QApplication::topLevelAt ( const QPoint<qpoint.html>
& *point* ) [static]
Hopefully you have the co-ordinates to find the top Level Widget.
On Fri, May 20, 2011 at 11:40 AM, Chitturi, Devendra_NagaKumar <
Devendra.NagaKumar.Chitturi at deshaw.com> wrote:
> > 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> 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.
>
--
Regards,
Sudhish Kapoor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110520/6f13f468/attachment.html
More information about the Qt-interest-old
mailing list