pqDesktopServicesReaction can be used to open a file (or URL) using QDesktopServices.
More...
#include <pqDesktopServicesReaction.h>
|
static bool | openUrl (const QUrl &url) |
| Attempt to open a file (local or on the Web) using QDesktopServices. More...
|
|
pqDesktopServicesReaction can be used to open a file (or URL) using QDesktopServices.
e.g. if your application wants to launch a PDF viewer to open the application's User Guide, you can hookup a menu QAction to the pqDesktopServicesReaction. e.g.
Definition at line 50 of file pqDesktopServicesReaction.h.
◆ pqDesktopServicesReaction()
pqDesktopServicesReaction::pqDesktopServicesReaction |
( |
const QUrl & |
url, |
|
|
QAction * |
parent |
|
) |
| |
◆ ~pqDesktopServicesReaction()
pqDesktopServicesReaction::~pqDesktopServicesReaction |
( |
| ) |
|
|
override |
◆ openUrl()
static bool pqDesktopServicesReaction::openUrl |
( |
const QUrl & |
url | ) |
|
|
static |
Attempt to open a file (local or on the Web) using QDesktopServices.
Returns false if failed to open for some reason, other returns true.
◆ onTriggered()
void pqDesktopServicesReaction::onTriggered |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: