Re: [PyQt] help with performance issue

2011-04-11 Thread Matt Chambers
On 04/11/11 14:00, Hans-Peter Jansen wrote: You forgot to mention, from what class your offending method derives. Anyhow, I don't think, that cProfile is the proper instrumentation for that kind of issue, since PyQt is throughoutly compiled code, you should cope with that, and do proper profiling

[PyQt] help with performance issue

2011-04-11 Thread Matt Chambers
I'm hoping there is a PyQt historian out there that can answer this question for me. We have a major application that we've been unable to use anything beyond Pyqt 4.3 due to what I think is a performance issue with setVisible. I'd like to give an example but this is proprietary code and

Re: [PyQt] PyQt4 logging framework

2010-04-19 Thread Matt Chambers
I wish. I can put in a request to do so, but, its often a long process to get legal approval. On 04/19/10 01:11, NARCISO, Rui wrote: Hey, is this code available somewhere for download ? __ Rui NARCISO Data for Handling Qualities Aerodynamics Dep

Re: [PyQt] PyQt application crashes on exit

2010-04-07 Thread Matt Chambers
I'm seeing this as well on Linux. Since upgrading to 4.7.2 almost every apps prints a Segmentation fault message on exit. That is with Python 2.6.4. Our Python2.5 is still using the previously released version and doesn't have the problem when running the same code base. This is compiled ag

[PyQt] QAbstractItemModel segfaults, example code

2008-05-16 Thread Matt Chambers
Tried with Qt 4.3, Qt 4.4, PyQt 4.3.3, PyQt 4.4. I think it has something to do with my parent implementation. It starts ok but if you try to open the tree it segfaults right away. #!/bin/env python import sys from PyQt4 import QtCore, QtGui from PyQt4.QtCore import SIGNAL EMPTY_VARIANT = Q

[PyQt] disabling webkit

2008-05-15 Thread Matt Chambers
For some reason Qt 4.4 doesn't compile in my environment with webkit so I disabled it during the Qt compile because I'm more interested in checking out PyQt 4.4 than dealing with that. Although, after compiling PyQt 4.4 against Qt 4.4.0 it complains that the webbkit .so cannot be found. Is

Re: [PyQt] Qt 4.4

2007-10-17 Thread Matt Chambers
Andreas Pakulat wrote: On 16.10.07 12:02:04, Matt Chambers wrote: Has anyone tested the latest snapshots with Qt 4.4? No, and Phil usually doesn't support Qt snapshots, only releases. Andreas Yeah, lets start early! I want to get in some early testing with 4.4, the othe

[PyQt] Qt 4.4

2007-10-16 Thread Matt Chambers
Has anyone tested the latest snapshots with Qt 4.4? -- -Matt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] getting reference to a QPainter crashes application

2007-09-21 Thread Matt Chambers
Currently I'm running the latest PyQT 4.3 snapshot with the offical 4.3 release of Sip and Qt 4.3.1, although the problem is still there with PyQt 4.3 official release. What I have is a QWidget which is basically my own type of progress bar embedded in a QTreeWidgetItem. progressBar = jobPro

[PyQt] commercial license snapshots

2007-07-25 Thread Matt Chambers
Is it possible to have maybe some unsupported commercial license snapshots made available? Once a commercial release is out, we're pretty much stuck with it while bugs are fixed in the snapshots. -Matt ___ PyQt mailing listPyQt@riverbankcomputin

[PyQt] QStandardItemModel sort bug

2007-06-07 Thread Matt Chambers
Hey all, I'm having this problem with QStandardItemModel, its killing me. Basically, when I sort the QtreeView by a column, it loses the selection highlight column 0. The column 0 highlight actually moves to another row. It seems to move to the row that was in the selected rows spot before t

[PyQt] display progress bar duing QFile::copy

2007-05-18 Thread Matt Chambers
Anyone have code for updating a progress bar while copying large files? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] random QT error

2007-05-11 Thread Matt Chambers
Strange problem just cropped up, not sure what is going on. I have a QTextEdit box where I'm funneling python logging messages. self.__textEdit = QtGui.QTextEdit(self) self.__textEdit.setReadOnly(True) self.__textEdit.document().setMaximumBlockCount(100) self.__textEdit.setLineW

[PyQt] do set hints work QStandardItem?

2007-05-04 Thread Matt Chambers
using qt 4.2.2, pyqt 4.1. some example code, it acts like a qstandarditem which contains an array with the entire row inside. No matter what I do to the size hint, the column size always starts out way to small to display the data. Height, apparently does work, its width that seems to have n

Re: [PyKDE] QTreeWidget Automatically scrolls to top?

2007-02-07 Thread Matt Chambers
ay 07 February 2007 1:55 am, Matt Chambers wrote: Using PyQt4.1.1 When I remove an item from a QTableWidget, it automatically resets the scrollbar to the top. def removeItem(self,item) self.takeTopLevelItem(self.indexOfTopLevelItem(item)) It works properly with PyQt 4.0.1. Looked aroun

[PyKDE] QTreeWidget Automatically scrolls to top?

2007-02-06 Thread Matt Chambers
Using PyQt4.1.1 When I remove an item from a QTableWidget, it automatically resets the scrollbar to the top. def removeItem(self,item) self.takeTopLevelItem(self.indexOfTopLevelItem(item)) It works properly with PyQt 4.0.1. Looked around for properties that would affect this, couldn't fi

[PyKDE] QSortFilterProxyModel problems in 4.1.1?

2007-02-06 Thread Matt Chambers
I just made the switch from Pyqt 4.0.1 to 4.1.1. I have a QTableView with a QSortFilterProxyModel and I've implemented custom filtering in filterAcceptsRows. This works great in 4.0.1. In 4.1.1, it seems to be resorting the data whenever I call "filterChanged()", which didn't happen with 4.0

[PyKDE] Why does this not work anymore?

2007-01-23 Thread Matt Chambers
Using Qt4.1 and PyQt 4.0.1 this worked fine: l = [1,2,3,4,5] self.emit(QtCore.SIGNAL("selected(PyObject *)"),l) Using Qt4.2 and PyQt 4.1.1 I get: TypeError: argument 0 of signal QDialog.selected(PyObject*) has an invalid type What am I missing here? Has signals slots changed again? Also, I

Re: [PyKDE] easy qtreewidget question

2007-01-11 Thread Matt Chambers
Thanks, I forgot about those. Working good now Adam Tenderholt wrote: What about reimplementing mouseDoubleClickEvent()? It sounds like this would let you just bypass the default actions and have a double click event do what you want. Adam On 1/10/07, Matt Chambers <[EMAIL PROTECTED]>

[PyKDE] easy qtreewidget question

2007-01-10 Thread Matt Chambers
Anyone have any ideas on how I can disable the double click expand/collapse action on a QTreeWidget? Using pyqt 4.0.1, It doesn't seem like many of the disconnect methods have been implemented, im not sure what slots to actually disconnect. -Matt

[PyKDE] drag and drop question

2007-01-08 Thread Matt Chambers
Anyone know of a way to open a new dialog using drag and drop? Basically, I want the user to be able to drag a widget out of the application, and have a copy of that widget in a separate dialog box. -Matt ___ PyKDE mailing listPyKDE@mats.imk.fra

[PyKDE] custom widget question

2007-01-05 Thread Matt Chambers
Hi guys, I'm using a QTreeWidget for this particular tool, and a custom widget which displays a progress bar type image. Some code: def paintEvent(self,e): p = QtGui.QPainter(self) rect= e.rect() total_frm = self.__profile.frameCount() ratio = rect.width() /

Re: [PyKDE] Re: really wierd qthread + emit issue

2006-11-22 Thread Matt Chambers
Lukáš Lalinský wrote: Matt Chambers wrote / napísal(a): Using PyQt 4.0 and Qt 4.1. I'm emitting a single from a QThread with a single argument. About 50% of the time when I catch the signal and execute the slot function, the argument is a QMutex object, not the argument I emitted

Re: [PyKDE] QAbstractItemView Question

2006-11-17 Thread Matt Chambers
I actually went ahead and made the changes I needed to move the data into the model. Instead of just replacing the data entirely, I have a loop for updating and inserting, and one for deleting. Updating existing data works great, adding/removing is where I'm having issues. My data is based of

Re: [PyKDE] QAbstractItemView Question

2006-11-16 Thread Matt Chambers
So instead of recording which rows are selected, I recorded which keys were selected. Then I had to search through the new model and find those keys and select them in the selection model. -Brent On 11/16/06, Matt Chambers <[EMAIL PROTECTED]> wrote: Is it possible that

[PyKDE] QAbstractItemView Question

2006-11-16 Thread Matt Chambers
Is it possible that using one of the View classes, to reset() the model, but still maintain any selections the users had on items that were in the old data, and the new data? Matt ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk

Re: [PyKDE] qactions not destroyed after qmenu menu closes

2006-11-15 Thread Matt Chambers
Andreas Pakulat wrote: On 14.11.06 13:42:29, Matt Chambers wrote: I'm dynamically creating a context menu for a QTableView, populated with some QActions. Everytime I right click, the menu is created. Over time, hundreds of these closed menus will set in memory, along with all the qac

[PyKDE] qactions not destroyed after qmenu menu closes

2006-11-14 Thread Matt Chambers
I'm dynamically creating a context menu for a QTableView, populated with some QActions. Everytime I right click, the menu is created. Over time, hundreds of these closed menus will set in memory, along with all the qactions, assoctated icons and text, ect. When I close the app, I see all of t

[PyKDE] qtableview question

2006-10-25 Thread Matt Chambers
When I use QTableView, is there a mode that will make the columns auto-stretch to fill up available space? Matt ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] layout issues

2006-10-25 Thread Matt Chambers
Thanks for responses.  When I put the code on its own, it worked...then I realized I was using QMainWindow, so I had to setMainWidget on the splitter object. David Boddie wrote: On Tuesday 24 October 2006 14:52:45 -0700, Matt Chambers wrote: Hi all, trying to use a QSplitter

[PyKDE] layout issues

2006-10-24 Thread Matt Chambers
Hi all, trying to use a QSplitter to separate 2 different widgets, they both end up as little tiny things in the upper left hand corder of the window. Resizing the window doesn't affect them. I'm sure this has something to do with the layout but I've read the docs and tried 1000 different com

Re: [PyKDE] PyQT 4.x Display Roles

2006-10-11 Thread Matt Chambers
Andreas Pakulat wrote: On 11.10.06 13:10:34, Matt Chambers wrote: Andreas Pakulat wrote: On 10.10.06 21:19:59, M.Chambers wrote: How can I disable some that I'm not using? Seems like a waste to call data() that many times. I'm

Re: [PyKDE] MVC Question

2006-10-11 Thread Matt Chambers
Andreas Pakulat wrote: On 06.10.06 10:14:17, Matt Chambers wrote: Thanks, that works but then then any branches you have open in the tree view closed. I guess there is no way to maintain the open/close status of existing branches, and default new ones to open? Hmm

Re: [PyKDE] PyQT 4.x Display Roles

2006-10-11 Thread Matt Chambers
.isValid():     return EMPTY_VARIANT     el = index.internalPointer()     return QtCore.QVariant( el.get(self.__columns[index.column()][1]) ) -- Matt Chambers <[EMAIL PROTECTED]> Sony Pictures Imageworks ___ PyKDE mailing list

[PyKDE] signals

2006-10-06 Thread Matt Chambers
Any guesses as to why this line would not conncet the signal? Using a treeview. self.connect(self, QtCore.SIGNAL("collapsed (const QModelIndex & index)"), self.cbCollapsed); Matt ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://ma

Re: [PyKDE] MVC Question

2006-10-06 Thread Matt Chambers
ignal the tree view that the model has totally changed. Andreas -- Matt Chambers <[EMAIL PROTECTED]> Sony Pictures Imageworks Software Engineer Phone: (310) 840 9072 Cell: (703) 624 0221 ___ PyKDE mailing listPyKDE@mats.imk.fraunho