KUrl myUrl("http://www.example.com"); KUrl copyUrl(myUrl);
KUrl oldUrl("http://www.example.com/foo"); KUrl newUrl(oldUrl); newUrl.setPath("/bar");
KUrl oldUrl("http://www.example.com/foo"); KUrl newUrl(oldUrl); newUrl.setScheme("https");This creates a new KURL object `newUrl` which is a copy of `oldUrl`, but with a different scheme (`https` instead of `http`).