[PyQt] could this be a PyQt problem or it is Qt behavior change?

2010-08-06 Thread Linos
Hello, i have a QTableView with a QSortFilterProxyModel using a QSqlQueryModel as source, in Qt 4.5 i execute after the query has populated the data of the table resizeColumnsToContents() or resizeColumnToContent(int) and it get adjusted to the column contents but in Qt 4.6 if i have not

Re: [PyQt] pyuic4 problem

2010-08-06 Thread David Quinn
I downloaded a new version of PyQt and SIP and reinstalled. PyQt4 appeared to be installed properly, as was pyuic4. However when I ran the following command: david$ pyuic4 -d window.ui window.py I go this error message: Traceback (most recent call last): File

Re: [PyQt] pyuic4 problem

2010-08-06 Thread William Kyngesburye
On Aug 6, 2010, at 8:55 AM, David Quinn wrote: I don't understand what this means. Should I just delete all my python files from the frameworks folder, and reinstall everything (a new python install, etc)? Delete/Reinstall /System/Frameworks/Python.framework - definitely not (last resort),

Re: [PyQt] pyuic4 problem

2010-08-06 Thread David Quinn
Other than that, I don't know anything about pyqt to say if there's anything wrong in your ui code, but it sounds like there may just be a syntax problem there. Sorry for the deluge of list traffic - yes it turned out to be a syntax error. Thanks for all the advice. On Fri, Aug 6, 2010 at

Re: [PyQt] Segmentation faults

2010-08-06 Thread Mailing List SVR
Il giorno gio, 05/08/2010 alle 03.10 -0400, Luke Campagnola ha scritto: I believe I have run into a class of bugs in PyQt4. I originally found that QSpinBox.lineEdit() returns a QLineEdit instance which does not maintain its reference count properly after the original QSpinBox is deleted.

Re: [PyQt] Segmentation faults

2010-08-06 Thread Luke Campagnola
On Fri, Aug 6, 2010 at 10:53, Mailing List SVR li...@svrinformatica.itwrote: Il giorno gio, 05/08/2010 alle 03.10 -0400, Luke Campagnola ha scritto: $ python from PyQt4.QtGui import * a = QApplication([]) s = QSpinBox() l = s.lineEdit() del s l.text() Segmentation fault

[PyQt] enums and hand written code

2010-08-06 Thread Clinton Stimpson
Hi, I've got some hand written code using the SIP API to integrate PyQt with other C++ classes wrapped with another tool. I've got things generally working, but I'm not quite sure how to handle enums, such as Qt::AutoConnection. When I call api-api_convert_to_type(...) it asserts. I can do a

Re: [PyQt] Porting PyQt GUI between platforms.

2010-08-06 Thread Algis Kabaila
On Thursday 05 August 2010 14:36:17 Raoul Snyman wrote: And once again, you need to run this on a real Windows box. WINE *might* work, but PyInstaller tracks various Windows dependencies that might not be in WINE. You cannot build Windows packages on Linux. Raoul, This is valuable advice.