Re: [PyQt] QTabWidget

2007-11-25 Thread kib2
Lawrence Shafer a écrit : Let me explain things better here. I could easily do this if I was hand coding the whole thing, but I've done the ui in QT Designer, so that's where I'm stumped. I have a Qwidget with everything in it, so how do I add the same qwidget to each tab with a different prefi

Re: [PyQt] QTabWidget

2007-11-25 Thread David Boddie
On Sun Nov 25 22:49:18 GMT 2007, Lawrence Shafer wrote: > Let me explain things better here. I could easily do this if I was hand > coding the whole thing, but I've done the ui in QT Designer, so that's > where I'm stumped. I have a Qwidget with everything in it, so how do I > add the same qwid

Re: [PyQt] How to use QButtonGroup?

2007-11-25 Thread David Boddie
On Sun Nov 25 14:05:39 GMT 2007, Sibylle Koczian wrote: > I'm reading the documentation about QButtonGroup and QGroupBox and I don't > quite understand the relationship between them. I think the relationship between them in Qt 3 is a different to that in Qt 4, so that might also be a cause of c

Re: [PyQt] QTabWidget

2007-11-25 Thread Lawrence Shafer
Let me explain things better here. I could easily do this if I was hand coding the whole thing, but I've done the ui in QT Designer, so that's where I'm stumped. I have a Qwidget with everything in it, so how do I add the same qwidget to each tab with a different prefix on each widget based on

Re: [PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Andreas Pakulat
On 25.11.07 22:51:25, Simon Edwards wrote: > Andreas Pakulat wrote: >> On 25.11.07 21:17:12, Simon Edwards wrote: >>> I'm having a hard time getting a QTreeView widget to work with my own >>> model. I've tried translating the "Simple Tree Model Example" from the Qt >>> docs, but it still doesn't

Re: [PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Simon Edwards
Andreas Pakulat wrote: On 25.11.07 21:17:12, Simon Edwards wrote: I'm having a hard time getting a QTreeView widget to work with my own model. I've tried translating the "Simple Tree Model Example" from the Qt docs, but it still doesn't work. Does anyone have working example code for a QAbstra

Re: [PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Andreas Pakulat
On 25.11.07 21:17:12, Simon Edwards wrote: > Hello all, > > I'm having a hard time getting a QTreeView widget to work with my own > model. I've tried translating the "Simple Tree Model Example" from the Qt > docs, but it still doesn't work. Does anyone have working example code for > a QAbstract

[PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Simon Edwards
Hello all, I'm having a hard time getting a QTreeView widget to work with my own model. I've tried translating the "Simple Tree Model Example" from the Qt docs, but it still doesn't work. Does anyone have working example code for a QAbstractItemModel, or know what is going wrong? Tested on P

[PyQt] QTabWidget

2007-11-25 Thread Lawrence Shafer
I have a QTabWidget with one tab filled with widgets. Each tab will be for one user, so the tab "pages" wigets will all be identical. What I want to do is clone the first tab at runtime, and be able to access the widgets in that tab with the tabs name as a prefix. So it would be something like

[PyQt] How to use QButtonGroup?

2007-11-25 Thread Sibylle Koczian
Hello, I'm reading the documentation about QButtonGroup and QGroupBox and I don't quite understand the relationship between them. I can create QRadioButtons and put them into a QGroupBox. That makes them visible and mutually exclusive. And, of course, I should put a layout between the box and