OK i have a problem with running the fuction i called.
MySubWindow* pSubWindow = qobject_cast<MySubWindow*>(window);
pSubWindow->reloadme();
MySubWindow* pSubWindow = qobject_cast<MySubWindow*>(window);
pSubWindow->reloadme();
To copy to clipboard, switch view to plain text mode
This Works perfectly A message box does display with the correct url i want my webview to goto
void frm_web::reloadme( ){
msgbox.setText("you pushed me" + urltogo);
msgbox.exec();
}
void frm_web::reloadme( ){
extern QString urltogo;
QMessageBox msgbox;
msgbox.setText("you pushed me" + urltogo);
msgbox.exec();
}
To copy to clipboard, switch view to plain text mode
However this next function closes the program with
"The program has unexpectedly finished." No errors are displayed
void frm_web::reloadme( ){
msgbox.setText("you pushed me : " + urltogo);
msgbox.exec();
ui
->webView
->load
(QUrl(urltogo
));
}
void frm_web::reloadme( ){
extern QString urltogo;
QMessageBox msgbox;
msgbox.setText("you pushed me : " + urltogo);
msgbox.exec();
ui->webView->load(QUrl(urltogo));
}
To copy to clipboard, switch view to plain text mode
Im perhaps thinking it has to do with the reference ui but would not know how to get around it
i did try this->webView however that did not work.
Help would be greatly appreciated
Bookmarks