[PyKDE] setCaption for windows version

James Lamanna jamesl at appliedminds.com
Thu Oct 23 22:26:00 BST 2003


I've noticed that setCaption() doesn't appear to be working in the 
NC-Windows version of PyQt.
Using this test program:

 from qt import *
import sys
class MyWidget(QMainWindow):
      def __init__(self):
            QMainWindow.__init__(self,None,'',Qt.WDestructiveClose)
            self.setCaption( self.tr("Internationalization Example" ) );

if __name__ == '__main__':
      a = QApplication(sys.argv)
      QObject.connect(a,SIGNAL('lastWindowClosed()'),a,SLOT('quit()'))

      w = MyWidget()
      a.setMainWidget(w)
      w.show()
      a.exec_loop()

the caption never changes from 'python'.
Any idea how to get the window title to actually change?
Please CC me for I am not subscribed to the list.
Thank you.
-- 
James Lamanna




More information about the PyQt mailing list