How to set windows title in python qt?

user2649114 picture user2649114 · Aug 8, 2013 · Viewed 14k times · Source

I develop in pyqt and i made deb package on Ubuntu. It contain .desktop file, so it automatically add icon to main menu. When I start application windows title is correct but in gnome bar shows s_main.pyw which is name of main script in application. It is possible to set correct name in that bar?

Here's a link to image!

Answer

user2649114 picture user2649114 · Aug 13, 2013

I found answer. Simply you can enter name of application in constructor of QApplication object. Like this. app = QtGui.QApplication(['Here application name']) This name shows in gnome shell.