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() ==
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
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
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
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
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
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
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
> 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