Azad Rasul
SmartRS

SmartRS

25- Change the main icon of QGIS

Azad Rasul's photo
Azad Rasul

Published on Jun 20, 2021

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Download icon image

import os

icon = 'qgis_orange.png'
data_dir = os.path.join(os.path.expanduser('~'), 'D://', 'Python_QGIS')
icon_path = os.path.join(data_dir, icon)
icon = QIcon(icon_path)
iface.mainWindow().setWindowIcon(icon)
 
Share this
Proudly part of