S
S
Shemilixa2014-12-18 15:30:03
Qt Creator
Shemilixa, 2014-12-18 15:30:03

How to get the url of a new page in qt creator using webview?

In a normal browser, when you click on the link, a new tab (new window) should appear.
Question on using QT Creator's WebView widget.
In my project, when you click on a link, you need to get the url (of the supposed new window).
Tell me how to catch the opening of new tabs, windows and at the same time get the url ...
If possible, provide a code snippet.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-12-18
@EvgenijDv

urlChanged wasn't created for this?

void QWebView::urlChanged(const QUrl & url) [signal]
This signal is emitted when the url of the view changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question