[PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-07 Thread Oscar Cossu
Hy all,  I set the model of a QTreeView with an object that is a subclass of QAbstractItemModel.When I change the model (ex. deleting a row) and emit layoutChanged() signal, the treeModel should update the view, but errors occur. The model contain a QDomDocument object, and the QTeeView draw the xm

Re: [PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-07 Thread Andreas Pakulat
On 07.09.06 16:44:23, Oscar Cossu wrote: > Hy all, I set the model of a QTreeView with an object that is a subclass of > QAbstractItemModel. > When I change the model (ex. deleting a row) and emit layoutChanged() > signal, the treeModel should update the view, but errors occur. Read the Qt docume

[PyKDE] [PyQT] How to auto populate QTreeWidget with a complex data structure

2006-09-07 Thread Javier Sanz
Hello. I'm looking for some library/piece of code that is able to populate a QTreeWidget (or QTreeView) with the contents of a data structure (lists, dictionaries, classes... etc), in a way that nested data structures are nested accordingly in the tree, and tree leaves are always primitive data ty

[PyKDE] Tableitem center text + font size

2006-09-07 Thread Dave S
My project (and learning adventure !) continues ... (1) How do I center text in a TableItem ? I realize that I need to set an alignment flag ie AlignHCenter but am struggling to do so. My QT3 docs say ... The Qt class is a namespace for miscellaneous identifiers that need to be global-like. No

Re: [PyKDE] Tableitem center text + font size

2006-09-07 Thread Jim Bublitz
On Thursday 07 September 2006 11:51, Dave S wrote: > My project (and learning adventure !) continues ... > > (1) How do I center text in a TableItem ? I realize that I need to set an > alignment flag ie AlignHCenter but am struggling to do so. My QT3 docs > say ... > > The Qt class is a namespace f

Re: [PyKDE] Tableitem center text + font size

2006-09-07 Thread Dave S
On Thursday 07 September 2006 20:46, Jim Bublitz wrote: > On Thursday 07 September 2006 11:51, Dave S wrote: > > My project (and learning adventure !) continues ... > > > > (1) How do I center text in a TableItem ? I realize that I need to set an > > alignment flag ie AlignHCenter but am struggling

KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread Simon Edwards
On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: > Am Dienstag, 5. September 2006 19:29 schrieb Joachim Werner: > > SUSE has been shipping with PyQt/PyKDE installed in the default > > system for quite a while. For PyQT/PyKDE 3 this was a no-brainer: The > > HP printer tools are instal

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Hans-Peter Jansen
Hi Jim, Am Donnerstag, 31. August 2006 23:42 schrieb Jim Bublitz: > > Sorry - can't help with QCheckBox/QButton. I implemented checkboxes > with pixmaps, I think because I didn't like the way the Qt checkboxes > looked and worked. > > It's fairly simple - I kept the underlying data in a list of on

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Dave S
On Thursday 07 September 2006 22:24, Hans-Peter Jansen wrote: > Hi Jim, > > Am Donnerstag, 31. August 2006 23:42 schrieb Jim Bublitz: > > Sorry - can't help with QCheckBox/QButton. I implemented checkboxes > > with pixmaps, I think because I didn't like the way the Qt checkboxes > > looked and work

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Hans-Peter Jansen
Am Donnerstag, 7. September 2006 23:57 schrieb Dave S: > > Pedantic is good :) > > I am learning all the time and looking at how you guys get round > problems is all good Hehe, and don't forget to look into the PyQt examples. They're worth it. Good luck, Pete

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread Hans-Peter Jansen
Am Donnerstag, 7. September 2006 23:03 schrieb Simon Edwards: > On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: > > Am Dienstag, 5. September 2006 19:29 schrieb Joachim Werner: > > > SUSE has been shipping with PyQt/PyKDE installed in the default > > > system for quite a while. For P

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread David Boddie
On Thursday 07 September 2006 23:03:14 +0200, Simon Edwards wrote: > On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: > > which reminds me that the official kdebindings3-python package of KDE > > 3.5.4 is _way_ behind the current state of affairs. > > True. One of the main problems

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread Jim Bublitz
On Thursday 07 September 2006 14:03, Simon Edwards wrote: > On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: > > Am Dienstag, 5. September 2006 19:29 schrieb Joachim Werner: > > > SUSE has been shipping with PyQt/PyKDE installed in the default > > > system for quite a while. For PyQT/

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-07 Thread Jim Bublitz
On Thursday 07 September 2006 16:51, David Boddie wrote: > On Thursday 07 September 2006 23:03:14 +0200, Simon Edwards wrote: > > On Wednesday 06 September 2006 13:46, Hans-Peter Jansen wrote: > > > which reminds me that the official kdebindings3-python package of KDE > > > 3.5.4 is _way_ behind th

Re: [PyKDE] [PyQt3] alignment issue on subclassed QTableItem

2006-09-07 Thread Jim Bublitz
On Thursday 07 September 2006 14:24, Hans-Peter Jansen wrote: > Hi Jim, > > Am Donnerstag, 31. August 2006 23:42 schrieb Jim Bublitz: > > Sorry - can't help with QCheckBox/QButton. I implemented checkboxes > > with pixmaps, I think because I didn't like the way the Qt checkboxes > > looked and work

[PyKDE] Function pointer problem

2006-09-07 Thread jim j
Hi ,  I have a problem while compiling the following code. the code is given below:%Module pyMyTimertypedef void (*TIMERFP)(long);struct _time{%TypeHeaderCode#include %End  long    expiryTime;    TIMERFP    pRoutine;    long    param;};%ModuleHeaderCode#include%End int myTimerStart(_time* , lo