Friday, 19 May 2017

qgs - How to remove a QGIS project from the "Recent Projects" list?



I have a project in the QGIS Recent Projects list that doesn't exist anymore, but it keeps being listed (greyed out and without thumbnail image). Is there any way to remove it from the list? Perhaps by manually editing a history file or something like that?


I've found a feature request for this, and a related discussion, but I'm wondering if there's anything I can do now in QGIS 2.14.



Answer





  • To delete specific projects, from the toolbar go to Settings > Options > Advanced:


    Advanced options


    Make a solemn promise that you will be careful and click. Locate the UI folder and find the recentProjects. Here you will see an index of recent projects:


    Recent projects


    You can widen the Value column to see more details on your projects. Identify the project you want removed and note the folder number (eg. 2). Then in the Python Console, enter:



    from PyQt4.QtCore import QSettings
    QSettings().remove('UI/recentProjects/2')

    Restart QGIS and the project should be removed from the list.








  • To delete the entire Recent Projects list, you can enter the following in the Python Console:



    from PyQt4.QtCore import QSettings
    QSettings().remove('UI/recentProjects')

    Restart QGIS and you should see the list has cleared.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...