[PyQt] Displaying . in a tableitem

Phil Thompson phil at riverbankcomputing.com
Fri Jul 29 18:32:39 BST 2011


On Fri, 29 Jul 2011 17:49:26 +0100, "Protopia" <pyqt4 at protopia.co.uk>
wrote:
> I am trying to display . (i.e. not the three characters dot dot dot but
> the single character dotdotdot) in a tableitem, but is doesn't display.
> 
>  
> 
> Is there something I need to set or a string conversion I need to do to
> make this work?

The following works for me...

import sys
from PyQt4.QtGui import QApplication, QListWidget, QListWidgetItem

app = QApplication(sys.argv)
lw = QListWidget()

QListWidgetItem(u"\N{horizontal ellipsis}", lw)

lw.show()
app.exec_()

Phil


More information about the PyQt mailing list