I would like to have the URL from an attribute (in the attribute table) as a 'hotlink' wherein you can click on the URL and it opens the browser with the data. As it is right now, I'm having to identify feature, R-click on the URL and copy/paste the URL into a browser.
2 Answers 2
Take a look in Action menu at QGIS documentation. You need to define an action, this could be open urls defined by a field.
- Open your vector's properties, go to actions and select
+
button. type
=open
.Action text
=[%url_field%]
and click insert.
To execute the action, right-click on your object with Run feature action
button (attributes toolbar).
You have to:
Add a text field (PATH for example) to table and place the url to the pdf in the that field.
Then go to layer properties and go to actions and add new action
Type = open, Action text type [% "PATH" %]
Select OK and apply.