Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-07 Thread Andreas Pakulat
On 06.10.10 22:40:28, danny wrote: Are you sure, that the activated signal doesn't fit your needs? Unfortunately, yes. I forgot to mention, that I have the activated signal connected to a slot that shows when it fires. I also have both selectionChanged and currentChanged overridden to

Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-07 Thread Hans Meine
Am Donnerstag 07 Oktober 2010, 00:40:28 schrieb danny: My app constructs a tree by drag and drop. When I drop a node, I immediately make that node current and edit it's text. The execution order seems to selectionChanged, then currentChanged. The activated signal never fires at all.

Re: [PyQt] test case for deadlock in signal / slot new style

2010-10-07 Thread Phil Thompson
On Mon, 4 Oct 2010 22:27:59 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I finally got around writting a simple test case to demonstrate the deadlock in the signal/slot new style connections. The test case can be ran using the following command : python -m nose.core -v -s

Re: [PyQt] test case for deadlock in signal / slot new style

2010-10-07 Thread Erik Janssens
Thanks for making my day ! I was already considering a complete refactoring to get around the issue. On Thu, 2010-10-07 at 11:09 +0100, Phil Thompson wrote: On Mon, 4 Oct 2010 22:27:59 +0200, Erik Janssens erik.janss...@conceptive.be wrote: Hi, I finally got around writting a simple

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-07 Thread Phil Thompson
On Wed, 6 Oct 2010 14:33:29 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, today, I noticed, that there's an ugly issue, resulting in such tracebacks: Traceback (most recent call last): File main.py, line 84, in module win = MainWin() File mainwin.py, line 25, in

[PyQt] Multiprocessing and ProgressBar

2010-10-07 Thread Nicola Creati
Hello, I'm trying to develop a simple application that should do some calculation in a multiprocessing process and update a progress bar. I have tried to use the signal-slot technology to update the progress bar but at the end of my computation the gui crashes and i get: python:

Re: [PyQt] Multiprocessing and ProgressBar

2010-10-07 Thread Hans Meine
Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati: I'm trying to develop a simple application that should do some calculation in a multiprocessing process and update a progress bar. [...] Thi sis the code i'm using: There's no __main__ code, is there? I'd be easier for others to

Re: [PyQt] Multiprocessing and ProgressBar

2010-10-07 Thread Hans Meine
Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati: Hello, I'm trying to develop a simple application that should do some calculation in a multiprocessing process and update a progress bar. I have tried to use the signal-slot technology to update the progress bar but at the end of

Re: [PyQt] Multiprocessing and ProgressBar

2010-10-07 Thread Nicola Creati
Hans Meine wrote: Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati: I'm trying to develop a simple application that should do some calculation in a multiprocessing process and update a progress bar. [...] Thi sis the code i'm using: There's no __main__ code, is there?

Re: [PyQt] Multiprocessing and ProgressBar

2010-10-07 Thread Nicola Creati
Hans Meine wrote: Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati: Hello, I'm trying to develop a simple application that should do some calculation in a multiprocessing process and update a progress bar. I have tried to use the signal-slot technology to update the progress bar

[PyQt] Crash in QWebPage using mainFrame().toHtml() method in multithreaded app, findAllElements() broken too

2010-10-07 Thread Alexey Y Uzhva
Hello, friends! I'm getting a problem in my app: QWebPage crashes when i call mainFrame().toHtml() method. Moreover, mainFrame().findAllElements() always return 0 on any parameters (even trying to search body tag). Test case, demonstrating both problems: http://pastebin.ca/1956776 Thank you for

Re: [PyQt] Crash in QWebPage using mainFrame().toHtml() method in multithreaded app, findAllElements() broken too

2010-10-07 Thread Alexey Y Uzhva
Appropriate C++ program doesn't crash! -- Alexey Y Uzhva Everything will be all right in the end. If it's not all right, it's not the end. 2010/10/7 Alexey Y Uzhva ale...@uzhva.com Hello, friends! I'm getting a problem in my app: QWebPage crashes when i call mainFrame().toHtml() method.

Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-07 Thread danny
Anyhow, I would use the currentChanged signal if you're interested in a single currently highlighted item, or activated if you connect to more expensive / interruptive operations that should be more explicitly activated. Thanks to everyone for the explanations. I'm starting to grok what

Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-07 Thread Hans Meine
Am Donnerstag 07 Oktober 2010, 16:48:07 schrieb danny: One followup question to your response. I can't find a currentChanged signal, only a currentChanged slot. Clearly there is something I am not understanding. I overrode QAbstractItemView.currentChanged because that is all I could find. In

Re: [PyQt] selectionChanged or currentChanged in QTreeView

2010-10-07 Thread danny
Look in the selection model: http://doc.trolltech.com/4.5/qitemselectionmodel.html#currentChanged thanks, I was looking in the wrong place. I guess the correct way to reference the signal is: myTreeView.selectionModel().currentChanged thanks, D

Re: [PyQt] PyQt support for Qt 4.7

2010-10-07 Thread Phil Thompson
On Thu, 7 Oct 2010 00:35:16 +0200, David Boddie da...@boddie.org.uk wrote: On Tue Oct 5 09:36:49 BST 2010, Phil Thompson wrote: The minehunt example only seems to need support for lists of QObjects. Are there any other examples anywhere that have different use cases? I guess that's more

[PyQt] (no subject)

2010-10-07 Thread Nate Reid
Below is a sample program that demonstrates a problem with the updating of a Tab's size when setTabsClosable(false) is dynamically set. Run the program as is and add some tabs, and then remove some with either the close box or the 'Remove' button. When the last tab is shown, you'll see that

Re: [PyQt] PyQt 3.18.1 qApp.translate() issues since sip 4.11.1 (at least)

2010-10-07 Thread Hans-Peter Jansen
On Thursday 07 October 2010, 13:14:45 Phil Thompson wrote: On Wed, 6 Oct 2010 14:33:29 +0200, Hans-Peter Jansen today, I noticed, that there's an ugly issue, resulting in such tracebacks: As you can see, qApp is always involved, translate() most of the time, too. The real ugliness comes

Re: [PyQt] (no subject)

2010-10-07 Thread Baz Walter
On 07/10/10 19:00, Nate Reid wrote: Below is a sample program that demonstrates a problem with the updating of a Tab's size when setTabsClosable(false) is dynamically set. Run the program as is and add some tabs, and then remove some with either the close box or the 'Remove' button. When the

Re: [PyQt] PyQt support for Qt 4.7

2010-10-07 Thread Giovanni Bajo
On Thu, 07 Oct 2010 16:34:41 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 7 Oct 2010 00:35:16 +0200, David Boddie da...@boddie.org.uk wrote: On Tue Oct 5 09:36:49 BST 2010, Phil Thompson wrote: The minehunt example only seems to need support for lists of QObjects. Are

Re: [PyQt] PyQt support for Qt 4.7

2010-10-07 Thread Andreas Pakulat
On 08.10.10 01:08:08, Giovanni Bajo wrote: On Thu, 07 Oct 2010 16:34:41 +0100, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 7 Oct 2010 00:35:16 +0200, David Boddie da...@boddie.org.uk wrote: On Tue Oct 5 09:36:49 BST 2010, Phil Thompson wrote: The minehunt example only