Azad Rasul
SmartRS

SmartRS

25- Change the main icon of QGIS

Azad Rasul's photo
Azad Rasul
·Jun 25, 2021·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

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)

If you like the content, please SUBSCRIBE to my channel for the future content

 
Share this