[PyQt] configuring pykde from the kdebindings module

2008-07-14 Thread Marcos Dione
I've been trying to compile pykde4 from the kde4's kdebindings module. the problem is that I want to install everything in my user's home instead of the system, more explicitly, in /home/mdione/local/, but I don't know how to force cmake to set certain options, like the install directory. the

[PyQt] PyQt : QScrollView/QGridLayout question

2008-07-14 Thread samirg
folks, I am trying create a widget (QVBox) with grid layout in QScrollView which is inside QDialog. I place 2 user input fields into this widget, namely, QLabel at 0,0 and QLineEdit at 0,1, next to QLabel. Somehow, results are not what I am expecting. It is placing QLineEdit below QLabel. I

[PyQt] How do I draw a styled focus rectangle in a QStyledItemDelegate?

2008-07-14 Thread Benno Dielmann
Hi all, I've got a QStyledItemDelegate subclass which implements paint() to draw the contents of some QTableView cells. How do I make it paint a focus rectangle if one of those cells has got focus? I tried this: class MyDelegate(QStyledItemDelegate): ... def paint(self, painter, option,

Re: [PyQt] SystemError with a temporary variable when accessing a non-existing attribute

2008-07-14 Thread Erick Tryzelaar
On Mon, Jul 14, 2008 at 8:06 AM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Fri, 11 Jul 2008 20:45:24 -0700, "Erick Tryzelaar" > <[EMAIL PROTECTED]> wrote: > Have you tried it with the current SIP snapshot? > > Phil Yep, just tried it out and it's still throwing the SystemError. Are you not get

Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
On Jul 14, 2008, at 8:02 AM, simone wrote: Scott Frankel ha scritto: I've seen the subclassed model's internal select statement, using model.selectStatement(). I'm hoping to not have to re-implement that mess by hand in a hundred custom queries ;) Have you tried, by the setQuery() metho

Re: [PyQt] SystemError with a temporary variable when accessing a non-existing attribute

2008-07-14 Thread Phil Thompson
On Fri, 11 Jul 2008 20:45:24 -0700, "Erick Tryzelaar" <[EMAIL PROTECTED]> wrote: > Good evening, I'm getting an interesting error with sip and pointers. > Here's my trimmed down code: > > > #ifndef FOO_H > #define FOO_H > > #include > > c

Re: [PyQt] pyuic 4.4.2 missing support for QFormLayout?

2008-07-14 Thread Phil Thompson
On Thu, 10 Jul 2008 18:09:51 +0200, "HÃ¥vard Gulldahl" <[EMAIL PROTECTED]> wrote: > Hello, all, > > I'm running: > > $ pyuic4 --version: Python User Interface Compiler 4.4.2 for Qt version > 4.4.0 > $ dpkg -l pyqt4-dev-tools: 4.4.2-0ubuntu2 > > > and it borks out on the attached .ui file with th

Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread simone
Scott Frankel ha scritto: I've seen the subclassed model's internal select statement, using model.selectStatement(). I'm hoping to not have to re-implement that mess by hand in a hundred custom queries ;) Have you tried, by the setQuery() method, to set up the select statement like what you

[PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
Hello, Is it possible to specify the (Postgre)SQL keyword "ONLY" when subclassing QSqlRelationTableModel? My db schema currently uses a mechanism that requires that my select statements declare "ONLY" in order to return valid records. eg: SELECT * FROM ONLY foo; I've seen the s

[PyQt] Segmentation fault with QtGui.qt_x11_wait_for_window_manager

2008-07-14 Thread Markos Gogoulos
qt_x11_wait_for_window_manager results in segfault when called with None as argument. import PyQt4.QtGui PyQt4.QtGui.qt_x11_wait_for_window_manager(None) Segmentation fault This was tested on ubuntu hardy with the following: libqt4-core 4.3.4-0ubuntu3 libqt4-dev 4.3.4-0ubuntu3 python-qt4 4