Im using qt4 and embedding a webkit view in it. The webkit object expects a QUrl object containint the url. My code looks like this:
QUrl *application = new QUrl();
if (argc < 2) {
application->setUrl(DEFAULT_PAGE);
}
else {
application->setUrl(argv[2]);
}
view->load(application);
view->show();
But view->load(application); fails here, as view->load expects a (const QUrl&) and I’m passing a (QUrl*&)
I dereferenced the application object like this:
view->load(&application);
But that cnoverted application to (QUrl**)
How can I convert application to (const QUrl&)?
Like this:
See dereference operator.