QUrl inputUrl("https://www.google.com/search?q=qt+framework"); QUrl baseUrl("https://www.google.com"); QUrl finalUrl = baseUrl.resolved(inputUrl);
QUrl inputUrl("/search?q=qt+framework"); QUrl baseUrl("https://www.google.com"); QUrl finalUrl = baseUrl.resolved(inputUrl);In this example, the input URL is a relative URL that represents the same search query as in the previous example. The base URL is again the Google homepage. The resolved function is used to combine the relative URL with the base URL and generate the final URL for the search query. The final URL will again be "https://www.google.com/search?q=qt+framework". Package library: Qt Core (Qt5Core.dll)