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 48 of file pqDesktopServicesReaction.h.
§ pqDesktopServicesReaction()
pqDesktopServicesReaction::pqDesktopServicesReaction |
( |
const QUrl & |
url, |
|
|
QAction * |
parent |
|
) |
| |
§ ~pqDesktopServicesReaction()
virtual pqDesktopServicesReaction::~pqDesktopServicesReaction |
( |
| ) |
|
|
virtual |
§ 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()
virtual void pqDesktopServicesReaction::onTriggered |
( |
| ) |
|
|
inlineprotectedvirtual |
The documentation for this class was generated from the following file: