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:

Qt Code:
  1. void MainWindow::on_actionManual_triggered()
  2. {
  3. QDesktopServices::openUrl(QUrl::fromLocalFile(QDir::currentPath() + "/docs/" + "nameof.pdf"()));
  4.  
  5. }
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. void MainWindow::on_actionManual_triggered()
  2. {
  3. //QDesktopServices::openUrl(QUrl("file:///docs/nameof.pdf"));
  4.  
  5. }
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?