Re: [PyQt] How to catch a mouse event and a key event at the same time

2009-04-14 Thread Lukas Hetzenecker
Hello, try to use this: from PyQt4.QtCore import * from PyQt4.QtGui import * class Main(QWidget): def __init__(self, app): QWidget.__init__(self) self.app = app self.show() def mousePressEvent(self, event): if (app.keyboardModifiers() ==

[PyQt] How to catch a mouse event and a key event at the same time

2009-04-14 Thread projetmbc
Hello, I would like to know when the user uses at the same time the left button of the mouse and the key CTRL for example. Is-it possible ? Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/li

Re: [PyQt] CoreDump when calling slot with 'const char*' arguement

2009-04-14 Thread Alexis Boutillier
Hi again, I was able to work around the problem by wrapping the signal arround another one using QString instead of const char *. Thanks. Alexis Boutillier a écrit : Hi, The same code was working well in PyQt 4.4.4. with Qt 4.4.3. We found this problem in the process of migrating to new ve

Re: [PyQt] CoreDump when calling slot with 'const char*' arguement

2009-04-14 Thread Alexis Boutillier
Hi, The same code was working well in PyQt 4.4.4. with Qt 4.4.3. We found this problem in the process of migrating to new version 4.5 of Qt using PyQt snapshot. While reading the comments and documentation, I understand that QString and QByteArray have better support (encoding, ...). The pro

Re: [PyQt] CoreDump when calling slot with 'const char*' arguement

2009-04-14 Thread Phil Thompson
On Thu, 09 Apr 2009 19:29:18 +0200, Alexis Boutillier wrote: > Hi, > > I'm having a core dump when connecting a signal define in a PyQt wrapped > c++ class to a python method. > The c++ signal have (const char*, int, int, int, int) as arguments. > > I investigate the core and found that the pro

Re: [PyQt] [PyQt 4.5] Crash emit signal

2009-04-14 Thread Phil Thompson
On Mon, 13 Apr 2009 11:31:55 +0700, Alexandr N Zamaraev wrote: > Os Windows Vista Home Ru + sp1 > g++ (GCC) 3.4.5 (mingw-vista special r3) > Qt 4.5 (self build) > sip-4.8-snapshot-20090409 (self build) > PyQt-win-gpl-4.5-snapshot-20090411.zip (self build) > > > P.S. We found this in the code cod

[PyQt] QTreeWidget and DoubleClick

2009-04-14 Thread NARCISO, Rui
Hi all I have a QTreeWidget with standart QTreeWidgetItems. I would like that when a user double-clicks on a given item/column, that instead of selecting the entire line onthe column gets selected and the text within be copied so it can be pasted somewhere else (a typical copy-paste action). I

[PyQt] Re: Re: segfault when using a proxy and SIGNAL( "clicked(QModelIndex)" )

2009-04-14 Thread TP
Andreas Pakulat wrote: > The reason you get a segfault when using a proxy is quite simply that > you're trying to access something which doesn't exist. The index you get > in cellClicked is not an index of your custom model, its an index of the > proxy model, which doesn't have an internal pointer

Re: [PyQt] QThread, QMutex, windows vs linux

2009-04-14 Thread Frédéric Mantegazza
> I'm using some threads (QThread) in my app, and I have issues under > windows, but all works fine on linux. > > As I'm accessing some common resources (typically I access the same > hardware from different threads, through the same bus), I use a QMutex. > The bus driver, which is common to all th