5 #include <QDesktopServices>
10 #include <QtWebEngineWidgets/QWebEngineView>
12 #include <QWebEngineView>
30 setlocale(LC_NUMERIC,
"en_US");
32 QDesktopServices::setUrlHandler(
"http",
this,
"openUrl");
55 return QApplication::notify(rec, ev);
58 QMessageBox::critical(NULL,
"Error", e.
what());
68 QWebEngineView *view =
new QWebEngineView(NULL);
69 view->setAttribute(Qt::WA_DeleteOnClose);
const char * what() const
Returns a string representation of this exception in its current state.
virtual bool notify(QObject *rec, QEvent *ev)
notify - this function overrides the QApplication notify as QT event handlers do not handle exception...
QIsisApplication(int &argc, char *argv[])
Constructor.
void openUrl(QUrl url)
Open a URL in the browser specified by Isis.