diff --git a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetMainWindow.cxx b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetMainWindow.cxx index 172b67e224a581d389bd1e75e775b8948ea445fd..d09ee32bf8c5b60f450c87963dc6745c4ddd482f 100644 --- a/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetMainWindow.cxx +++ b/Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetMainWindow.cxx @@ -46,7 +46,8 @@ QtMainWindow::QtMainWindow(Application::Pointer app) helpAction = new QAction(tr("&Documentation"), this); helpAction->setShortcuts(QKeySequence::HelpContents); helpMenu->addAction(helpAction); - QObject::connect(helpAction, &QAction::triggered, this, [] { QDesktopServices::openUrl(QUrl("https://www.orfeo-toolbox.org/CookBook/")); }); + const std::string url = std::string("https://www.orfeo-toolbox.org/CookBook/Applications/app_") + app->GetName() + std::string(".html"); + QObject::connect(helpAction, &QAction::triggered, this, [=] { QDesktopServices::openUrl(QUrl(QString::fromStdString(url))); }); } void QtMainWindow::UnhandledException(QString message)