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

Atlant Schmidt aschmidt at dekaresearch.com
Fri May 20 12:47:35 CEST 2011


Sudish:

> How bout using the straight function,
>
> QWidget<qwidget.html> * QApplication::topLevelAt ( const QPoint<qpoint.html> & point )   [static]

  That would be "top within the application" but the question that I think
  Devendra asked was "visible considering the entire windowing system",
  not just the application.

  That's a much tougher question.

                                       Atlant

________________________________
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of sudhish kapoor
Sent: Friday, May 20, 2011 02:30
To: Chitturi, Devendra_NagaKumar
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] Finding if the widget is completely visible or not

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<mailto: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<mailto:kapoorsudhish at gmail.com>]
Sent: Thursday, May 19, 2011 2:01 PM
To: Chitturi, Devendra_NagaKumar
Cc: qt-interest at qt.nokia.com<mailto: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.



--
Regards,
Sudhish Kapoor.


Click here<https://www.mailcontrol.com/sr/Z5wlMGvO447TndxI!oX7UpJAdpTSMUBqKEHN0ItznB9SMCugY1cDq4u67!VmIzcciCxqbwqmt0y6Rmyxrg+4Pw==> to report this email as spam.

________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110520/20893b96/attachment.html 


More information about the Qt-interest-old mailing list