[PyQt] qtreewidget only printing first character of my strings

Jason Rahm J.Rahm at F5.com
Thu Apr 21 18:29:24 BST 2011


Yes, that works much better.  Thanks for the help.

Jason

-----Original Message-----
From: Wolfgang Rohdewald [mailto:wolfgang at rohdewald.de] 
Sent: Thursday, April 21, 2011 11:29 AM
To: pyqt at riverbankcomputing.com
Cc: Jason Rahm
Subject: Re: qtreewidget only printing first character of my strings

On Donnerstag 21 April 2011, Jason Rahm wrote:
> If I uncomment my print statements, each string is printed as 
> expected, but in the QTreeWidget, I only get the first
> character:

I think QTreeWidgetItem expects a string list, not a string.
Maybe [x] instead of x works better?

--
Wolfgang


More information about the PyQt mailing list