Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, March 2008
QtWebKit signal of Window.close()


Message 1 in thread

Hi Trolltech and Qt Fans,
    I have a question about QtWebKit API.
    Is there any signal or virtual function where I can handle the
javascript command "window.close()"?  I just want to close the external
QWebView holder when execuate "window.close()".
    I can't find anything relatived in QWebView, QWebPage and QWebFrame.

   Thanks~~


Best Regards,
William

Message 2 in thread

On Monday 10 March 2008 08:49:31 william lee wrote:
> Hi Trolltech and Qt Fans,
>     I have a question about QtWebKit API.
>     Is there any signal or virtual function where I can handle the
> javascript command "window.close()"?  I just want to close the external
> QWebView holder when execuate "window.close()".
>     I can't find anything relatived in QWebView, QWebPage and QWebFrame.
>
>    Thanks~~
>
>
> Best Regards,
> William

QWebPage will give off the signal windowCloseRequested which is probably what 
you are looking for.  Some example usage can be found in the demo browser's 
tabwidget.cpp.

-Benjamin Meyer

Attachment:

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 3 in thread

On Monday 10 March 2008 09:28:56 Benjamin Meyer wrote:
> QWebPage will give off the signal windowCloseRequested which is probably
> what you are looking for.  Some example usage can be found in the demo
> browser's tabwidget.cpp.

And you need a recent snapshot for this signal to be present, IIRC it was 
added after the beta1.

z.

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 4 in thread

Hi Holger,
A good answer to the future questions :) Thanks~

William


On Mon, Mar 10, 2008 at 5:03 PM, Holger Freyther <freyther@xxxxxxx> wrote:

> On Monday 10 March 2008 09:28:56 Benjamin Meyer wrote:
> > QWebPage will give off the signal windowCloseRequested which is probably
> > what you are looking for.  Some example usage can be found in the demo
> > browser's tabwidget.cpp.
>
> And you need a recent snapshot for this signal to be present, IIRC it was
> added after the beta1.
>
> z.
>
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx
>
>