El Martes 18 Octubre 2005 18:59, Yann Cointepas escribió:
> If it means that the too few people that may care about the copy cost
> should be ignored then QString can be dropped. However, there is a simple
> case where the copy can be a problem. I use QTextEdit in a kind of log
> system (adding text line by line). If QString is dropped, textEdit.setText(
> textEdit.text() + newLine ) will copy the text twice. For big text, it
> could be a problem. I am not a QString protector (I also had some problems
> with it at the begining) but I say we should think twice before removing
> it.
You really should use append() instead of setText(). It's faster than what you
are doing now, even if you pass it a python string :-)
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) [EMAIL PROTECTED]
(_Y_.)' ._ ) `._`. " -.-' KDE Developer (MFCH)
_..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
Imminentizing the eschaton since 1971.
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde