[PyQt] QGraphicsScene/Item/View optimisation

2009-02-04 Thread Frédéric
Hello, I draw some items (mainly rectangles or ellispes) on a scene, and it seems to take a lot of resources, even with a few objects (say 10). The main issue is on the maemo plateform, as Nokia N8x0 devices are not that powerfull. Just drawing the initial scene takes a few seconds. Are there

Re: [PyQt] import ui_rc

2009-02-04 Thread simozack
2009/2/4, Yusuf X ys1...@gmail.com: I have one question: when I run pyuic4 on a .ui file that has a QMainWindow, it adds import ui_rc at the end of the resultant .py file. Then when I use that .py file, I get ImportError: No module named ui_rc. If I delete that last line by hand, the .py

Re: [PyQt] import ui_rc

2009-02-04 Thread Phil Thompson
On Tue, 3 Feb 2009 22:52:09 -0800, Yusuf X ys1...@gmail.com wrote: Hello, first of all thanks for making PyQT. I have one question: when I run pyuic4 on a .ui file that has a QMainWindow, it adds import ui_rc at the end of the resultant .py file. Then when I use that .py file, I get

[PyQt] Worker Thread

2009-02-04 Thread Matt Smith
It seems like your worker thread should start, I don't really like how you've set it up, but I think it should start, so I am going to suggest that pow is too much for it. Ie it is taking all of the resources your application gets. Really what you should do in that case is use multiprocessing.

Re: [PyQt] Newbie with a circular problem calling problem

2009-02-04 Thread Marc Nations
In order to prevent similar situations in the my code where I have a set of dependent boxes I've used a couple of methods. First method is to use a governor function. Send all of your signals to one function which can evaluate each signal as it's called and decide to act on or ignore subsequent

Re: [PyQt] Linking Qt statically into a project using embedded Python and Sip/PyQt

2009-02-04 Thread Ulrich Berning
George Goussard wrote: Hello. My project that I am currently working on is a cross-platform C++ project. On Linux 32-bit/64-bit I have the constraint that I MUST link Qt (4.3.3) in statically with the project. This is a given and cannot be compromised. I have successfully embedded Python

[PyQt] Newbie with a circular problem calling problem

2009-02-04 Thread Matt Smith
Have you noticed that QLineEdit emits a signal textEdited which is not emitted when the text is changed with setText. http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qlineedit.html#textEdited and spin boxes emit the following

Re: [PyQt] Linking Qt statically into a project using embedded Python and Sip/PyQt

2009-02-04 Thread Giovanni Bajo
On 2/4/2009 4:42 PM, Ulrich Berning wrote: George Goussard wrote: Hello. My project that I am currently working on is a cross-platform C++ project. On Linux 32-bit/64-bit I have the constraint that I MUST link Qt (4.3.3) in statically with the project. This is a given and cannot be

[PyQt] Slow loading times of PyQt .exe with Pyinstaller

2009-02-04 Thread eliben
Hello, I've compiled a relatively simple GUI application with PyQt into an .exe with Pyinstaller. The loading time of this .exe is very long (7-8 seconds). When I compile it with py2exe instead (which seems to work great except that one has to remember adding 'sip' as an explicit depenency),

Re: [PyQt] Newbie with a circular problem calling problem

2009-02-04 Thread Matt Smith
Here is what is meant by programatically change. And this is what I mean by using the signals. I don't know what widgets your actually using, but if you can't find signals that are only emitted when you want, then you'll have have to hand the signals differently. (I beleive there has been some

[PyQt] defining QlistViewitem in python

2009-02-04 Thread klia
hello folks i have this problems in my codes. i am try to link qfiledailoug with qlistviewitem so that whenever i chose a file it would be loaded in qlistview item using this function self.item.append(QlistViewitem(self.tree, 'filename')) but whenever i try that it gives me an attribute error

[PyQt] item delegates

2009-02-04 Thread Mads Ipsen
Hi, Suppose I have a TableView. Then I can set itemdelegates for a column, a row or the entire view using the respective methods void setItemDelegateForColumn ( int column, QAbstractItemDelegate * delegate ) void setItemDelegateForRow ( int row, QAbstractItemDelegate * delegate ) void