[PyQt] Customized view of a database table

2009-02-02 Thread Mattia Borsalino
Hi, I'm having trouble performing a task that I thought should be very common, but that instead appears to be an unusual need. In short, I have a database table that has three columns: let's say they are ID, Name and Savings, in this order. Now, I would like to retrieve the table and for that I c

Re: [PyQt] How to clear QDateTime

2009-02-02 Thread Marc Nations
Thanks! ...it does work and functions like I need it to. Marc On Sun, Feb 1, 2009 at 3:24 PM, David Boddie wrote: > On Sun Feb 1 20:53:45 GMT 2009, David Douard wrote: > > Le Saturday 31 January 2009 19:15:23 Marc Nations, vous avez écrit : > > > > I can't seem to clear out the QDateTime field i

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread Filip Gruszczyński
So basically I really shouldn't use it and always keep only one inheritance line to the QObject class. OK, so I will do ;-) -- Filip Gruszczyński ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/py

Re: [PyQt] Add some text in QFileDialog

2009-02-02 Thread Geert Vancompernolle
projet...@club-internet.fr wrote: Hello, I would like to add some informations in a TextEdit or a Label in QFileDialog to help the users to know what it must searchs. How can I do that ? Best regards. Christophe. ___ PyQt mailing listPyQt@river

[PyQt] Add some text in QFileDialog

2009-02-02 Thread projetmbc
Hello, I would like to add some informations in a TextEdit or a Label in QFileDialog to help the users to know what it must searchs. How can I do that ? Best regards. Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverba

[PyQt] Mysterious change of QWidget.width()

2009-02-02 Thread Michael Wyss
Hello. I am using QListView() in IconMode and a QAbstractListModel() to view some QWidget()'s which i have to render first into QPixmap() in order to get them into the model. The QWidget() ajusts its size to the one to four QLabel()'s in it. Now i have a mysterious problem with the width of the

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread simozack
2009/2/2, Matt Smith : > > > > Could someone explain to me, how is that possible and why it works: > > > > > > class A(QWidget): > > > def __init__(self): > > >QWidget.__init__(self) > > > > > > class B(QWidget): > > > def __init__(self): > > >QWidget.__init__(self) > > > > > > class C(A,

Re: [PyQt] Segfault when trying newDoc.setDocumentLayout(QtGui.QPlainTextDocumentLayout(newDoc))

2009-02-02 Thread Phil Thompson
On Mon, 02 Feb 2009 16:27:51 +0100, GT6 wrote: > Phil Thompson wrote: >> On Mon, 02 Feb 2009 13:49:23 +0100, GT6 wrote: >> >>> Phil Thompson wrote: >>> On Mon, 02 Feb 2009 03:37:13 +0100, GT6 wrote: > Hi there. > > When running the below sample script

Re: [PyQt] Segfault when trying newDoc.setDocumentLayout(QtGui.QPlainTextDocumentLayout(newDoc))

2009-02-02 Thread GT6
Phil Thompson wrote: On Mon, 02 Feb 2009 13:49:23 +0100, GT6 wrote: Phil Thompson wrote: On Mon, 02 Feb 2009 03:37:13 +0100, GT6 wrote: Hi there. When running the below sample script, and clicking the button, it will segfault, and I don't understand why or how. I've overwr

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread Grissiom
On Mon, Feb 2, 2009 at 21:51, Frédéric wrote: > Le 2/2/2009, "Grissiom" a écrit: > >In my memory, one of the tutorial source file said that PyQt4 doesn't > >support multiple inheriting now. And I think besides calling > >Q1.__init__(...) and Q2.__init__(...) we need more. IMHO, calling __init__ >

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread Matt Smith
> > Could someone explain to me, how is that possible and why it works: > > > > class A(QWidget): > > def __init__(self): > >QWidget.__init__(self) > > > > class B(QWidget): > > def __init__(self): > >QWidget.__init__(self) > > > > class C(A, B): > > def __init__(self): > >A.__init_

Re: [PyQt] Segfault when trying newDoc.setDocumentLayout(QtGui.QPlainTextDocumentLayout(newDoc))

2009-02-02 Thread Phil Thompson
On Mon, 02 Feb 2009 13:49:23 +0100, GT6 wrote: > Phil Thompson wrote: >> On Mon, 02 Feb 2009 03:37:13 +0100, GT6 wrote: >> >>> Hi there. >>> >>> When running the below sample script, and clicking the button, it will >>> segfault, and I don't understand why or how. I've overwritten a function >

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread Frédéric
Le 2/2/2009, "dbod...@trolltech.com" a écrit: >This is probably related to the restriction in C++ that you can only inherit >from one QObject-based class when using multiple inheritance. This is partly >due to the limitations of the meta-object system, but problems also arise as >a result of the

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread dboddie
On Mon Feb 2 10:43:13 GMT 2009, simozack wrote: > 2009/1/31, Filip Gruszczyński : > > Could someone explain to me, how is that possible and why it works: > > > > class A(QWidget): > > def __init__(self): > >QWidget.__init__(self) > > > > class B(QWidget): > > def __init__(self): > >QWidge

Re: [PyQt] Segfault when trying newDoc.setDocumentLayout(QtGui.QPlainTextDocumentLayout(newDoc))

2009-02-02 Thread GT6
Phil Thompson wrote: On Mon, 02 Feb 2009 03:37:13 +0100, GT6 wrote: Hi there. When running the below sample script, and clicking the button, it will segfault, and I don't understand why or how. I've overwritten a function in QPlainTextEdit and it should create a new document, set the PlainT

Re: [PyQt] Two base classed inherit QWidget

2009-02-02 Thread simozack
2009/1/31, Filip Gruszczyński : > Could someone explain to me, how is that possible and why it works: > > class A(QWidget): > def __init__(self): >QWidget.__init__(self) > > class B(QWidget): > def __init__(self): >QWidget.__init__(self) > > class C(A, B): > def __init__(self): >A._

Re: [PyQt] Segfault when trying newDoc.setDocumentLayout(QtGui.QPlainTextDocumentLayout(newDoc))

2009-02-02 Thread Phil Thompson
On Mon, 02 Feb 2009 03:37:13 +0100, GT6 wrote: > Hi there. > > When running the below sample script, and clicking the button, it will > segfault, and I don't understand why or how. I've overwritten a function > in QPlainTextEdit and it should create a new document, set the > PlainTextDocumentLayo