1

Is there a way in the Print Composer of QGIS to create a label that will automatically update the path of the QGIS project?

0

1 Answer 1

1

Yes. Insert a label, and for the label text insert an expression with the text: @project_path

The @project_path variable is automatically filled with the current path of the project.

5
  • Hi, again. If I put '@project_path' in print composer appears @project_path ando if I put @project_path an expression error appears. I'm sorry about my level, I've been looking for some help about expressions in QGIS but I didn't get it.
    – lolailo
    Commented Jun 29, 2016 at 8:43
  • Which QGIS version are you using?
    – ndawson
    Commented Jun 29, 2016 at 8:55
  • QGIS 2.8.2 because is a LTR and I have some problems to install software. I work in a public administration and I've no permission for install newer versions :-(
    – lolailo
    Commented Jun 29, 2016 at 9:03
  • The expression variables were introduced in 2.10, so you'll need to wait for the next LTR to have access to them
    – ndawson
    Commented Jun 29, 2016 at 9:39
  • I'm closing this as duplicate of an older question which has a solution before @project_path was introduced.
    – underdark
    Commented Jun 29, 2016 at 20:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.