[PyKDE] Tabs in QListBoxText

Giovanni Bajo rasky at develer.com
Fri Apr 15 09:09:06 BST 2005


Jeffrey Barish <jeff_barish at earthlink.net> wrote:

> I have a statement:
> 
> QListBoxText(clb, '%s:\t%s' % (key, thing[key]))
> 
> The tab does not appear (it's a space).  Do I have to set tab stops,
> or is there no way to use tabs in listboxes?
> 
> What I really want is for the keys and things to line up vertically. 
> A QListView could do that with 2 columns, but I don't want the column
> headers.  Any suggestions appreciated.


Ah well, even easier, QListView.header().hide().

Giovanni Bajo




More information about the PyQt mailing list