[PyKDE] Compating QStrings (SILLY ME!)

jblazi jblazi at gmx.de
Tue Jul 2 10:57:01 BST 2002

Thank you very much.
I meant, i cannot test, whether two QStrings are equal with 
"==". For example

  s = QString('hallo')
  t = QString('hallo')

  if s == t: print 'equal1'
  else: print 'not equal1'
  if str(s) == str(t): print 'equal2'
  else: print 'not equal2'

will print out 

  not equal1

Sorry for the wrong qauestion.


More information about the PyQt mailing list