[PyKDE] QString in PyQt4 - Request for Comments

Andreas Pakulat apaku at gmx.de
Tue Oct 18 23:13:04 BST 2005


On 18.10.05 23:59:56, Yann Cointepas wrote:
> 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 )

The real question here should be: Why don't you use setText(), when
QTextEdit has an append()-function? Or is that not available in PyQt (I
only checked the Qt3/4 docs).

andreas

-- 
Celebrate Hannibal Day this year.  Take an elephant to lunch.




More information about the PyQt mailing list