I have used the map display text in QGIS to add HTML which enables me to view images related to a point feature when i hover the mouse over it.

However I have realized that I have to rewrite the code each time I reopen the layer.

Is it possible to save it in such a way that it is permanently saved in the layer properties?

2 Answers 2


ahmadhanb's answer is close, but if you click the "Save as Default" option from the Style dropdown menu in the layer properties than the style (including the map tip) will automatically be loaded whenever you open this layer in QGIS.


You can save the map tip as a ".qml" file same as if you are saving a style, as you can see below:

enter image description here

You need to go to Style => Save Style => QGIS Layer Style File

Then when you want to load the ".qml" file, go to Style => Load Style

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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