[Qgis-developer] unable to change the qgis version 1.7 window icon and window title from outside

Ankur Sinha vicky.pydeveloper at gmail.com
Wed Sep 7 10:55:28 EDT 2011


Dear sir ..
as i am a beginner to qgis i am getting problem in changing the title and
icon of the qgis ..
i am trying to write a code which changes the same

#-------------------------
import sys
import os
from PyQt4.QtCore import *
from qgis.core import *
from qgis.gui import *
from qgis.utils import *
import time
import math


# Creating Class

class callQgis():
    def __init__(self):
        iface = qgis.utils.iface
        iface.mainWindow().setWindowTitle("ankur workhard")
        os.system('qgis.exe')

if __name__ == "__main__":
    cQgis = callQgis()


#---------------------------------------
Qgis is not getting called and no error is coming , I am able to change
these things from inside the qgis ver 1.7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110907/bf7b59cf/attachment.html


More information about the Qgis-developer mailing list