Good afternoon,
Have a little problem , I am trying to open a PDF from a sub-directory in my application folder when a button or menu item is clicked. I have tried a couple different things but neither seem to work. They are as follows:
void MainWindow::on_actionManual_triggered()
{
}
void MainWindow::on_actionManual_triggered()
{
QDesktopServices::openUrl(QUrl::fromLocalFile(QDir::currentPath() + "/docs/" + "nameof.pdf"()));
}
To copy to clipboard, switch view to plain text mode
and
void MainWindow::on_actionManual_triggered()
{
//QDesktopServices::openUrl(QUrl("file:///docs/nameof.pdf"));
}
void MainWindow::on_actionManual_triggered()
{
//QDesktopServices::openUrl(QUrl("file:///docs/nameof.pdf"));
}
To copy to clipboard, switch view to plain text mode
Neither work lol. I know I am probably missing something minor but can't put my finger on it.
Any suggestions?
Bookmarks