[PyQt] mouse pressed event with qt 4.5

Thomas Espenhain thomas.espenhain at googlemail.com
Wed Mar 18 11:52:34 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry that's right!
QMainWindow have to been replaced by QWidget.

But the result is the same ...

Thanks for the hint ...

Am 18.03.2009 um 10:14 schrieb Phil Thompson:

> On Wed, 18 Mar 2009 00:29:21 +0100, Thomas Espenhain
> <thomas.espenhain at googlemail.com> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Andreas,
>> thanks for your answer and sorry for the missing example .. here it
>> comes:
>>
>> import sys
>> from PyQt4 import QtCore, QtGui
>> app = QtGui.QApplication(sys.argv)
>>
>> class Example(QtGui.QWidget):
>>
>>     def __init__(self, parent=None):
>> 	QtGui.QMainWindow.__init__(self, parent)
>
> ...that's the first thing to fix...
>
> Phil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFJwOCCM34iAr5ELxcRAsgqAJ49T6KzAYY/l7/LbeLEjzfP5ErihgCg0Vrg
Kh2AscdqlQ/UVY6ENPNI9h0=
=Ks8G
-----END PGP SIGNATURE-----



More information about the PyQt mailing list