Re: [PyQt] Gesture programming in PyQt

2012-01-04 Thread Phil Thompson
On Wed, 4 Jan 2012 19:46:45 +0100, Detlev Offenbach wrote: > Hello, > > does anybody have experience in gesture programming with PyQt? I am trying > to program a custom gesture recognizer, but registering it with > QGestureRecognizer.registerRecognizer(…) crashes the script. Here is the > excerpt

[PyQt] Gesture programming in PyQt

2012-01-04 Thread Detlev Offenbach
Hello, does anybody have experience in gesture programming with PyQt? I am trying to program a custom gesture recognizer, but registering it with QGestureRecognizer.registerRecognizer(…) crashes the script. Here is the excerpt of the code that is executing the above function. --CODE-- class E5

Re: [PyQt] SCN_MODIFIED parameters

2012-01-04 Thread Phil Thompson
On Wed, 4 Jan 2012 11:26:03 -0600, "Bryan A. Jones" wrote: > All, > > I'm trying to better understand the SCN_MODIFIED signal in QScintilla v2.6, > since the documentation doesn't provide many details. Digging a bit in the > source code: > > In Qt4\ScintillaQt.cpp(357), I see what I believe is a

[PyQt] SCN_MODIFIED parameters

2012-01-04 Thread Bryan A. Jones
All, I'm trying to better understand the SCN_MODIFIED signal in QScintilla v2.6, since the documentation doesn't provide many details. Digging a bit in the source code: In Qt4\ScintillaQt.cpp(357), I see what I believe is a signal sent to Python as: emit qsb->SCN_MODIFIED(scn.position

Re: [PyQt] How to extract the value of a Qspinbox?

2012-01-04 Thread Fabien Lafont
I'm stupid... thank you very much! 2012/1/4 Tayfun Kayhan : > what about  vbl.addWidget(self.tension)  ? > > > From: Fabien Lafont > To: Tayfun Kayhan > Cc: "pyqt@riverbankcomputing.com" > Sent: Wednesday, January 4, 2012 6:04 PM > Subject: Re: [PyQt] How to ext

Re: [PyQt] How to extract the value of a Qspinbox?

2012-01-04 Thread Tayfun Kayhan
what about  vbl.addWidget(self.tension)  ? From: Fabien Lafont To: Tayfun Kayhan Cc: "pyqt@riverbankcomputing.com" Sent: Wednesday, January 4, 2012 6:04 PM Subject: Re: [PyQt] How to extract the value of a Qspinbox? Sorry, I should say it before but I've a

[PyQt] Manipulate QML from Python

2012-01-04 Thread Hernan Grecco
Hi, I have an application that introspects a a python class to generate an QML and a QObject wrapper. It works quite good but the QML handling is done in a very primitive way. Is there any QML reader/writer that can be used from python similar to json and xml? Thanks, H _

Re: [PyQt] How to extract the value of a Qspinbox?

2012-01-04 Thread Fabien Lafont
Sorry, I should say it before but I've alreadt tryied this method: it returns: vbl.addWidget(tension) NameError: global name 'tension' is not defined 2012/1/4 Tayfun Kayhan : > without the prefix 'self', tension is not an attribute of class, so it > complaints this. you try replacing it with b

Re: [PyQt] How to extract the value of a Qspinbox?

2012-01-04 Thread Tayfun Kayhan
without the prefix 'self', tension is not an attribute of class, so it complaints this. you try replacing it with below : ... self.tension = QDoubleSpinBox() self.tension.valueChanged.connect(self.voltage) self.tension.setRange(0,100) ... From: Fabien Lafont T

[PyQt] How to extract the value of a Qspinbox?

2012-01-04 Thread Fabien Lafont
I'm trying to extract the value of an QDoubleSpinBox but I can't understand why it does not work. It returns: levoltage = self.tension.value() AttributeError: 'ApplicationWindow' object has no attribute 'tension' Do you have any idea why? I'm just starting to learn PyQt :) My code: from visa

Re: [PyQt] Designer plugins with non-default QString/etc. SIP API versions

2012-01-04 Thread Phil Thompson
On Wed, 4 Jan 2012 01:52:08 +0100, Fabian Knittel wrote: > Hi, > > we're currently migrating our Python 2.x PyQt4 code from > QString/QVariant/... SIP API version 1 to version 2 in preparation for > Python 3. The app works fine and we're quite happy with API version 2. > > Unfortunately, our app

Re: [PyQt] [dip] underlying C/C++ object

2012-01-04 Thread Phil Thompson
On Wed, 4 Jan 2012 14:08:10 +0100, Kermit wrote: > hi, > > i've try to use with dip my own c++ qt widget. > but in fact i've this error : "underlying C/C++ object has been deleted" > > my problem : > > i don't understand how dip execute the initialisation ( like > QWidget.__init__(self,parent

[PyQt] [dip] underlying C/C++ object

2012-01-04 Thread Kermit
hi, i've try to use with dip my own c++ qt widget. but in fact i've this error : "underlying C/C++ object has been deleted" my problem : i don't understand how dip execute the initialisation ( like QWidget.__init__(self,parent ) ) of qt componante it's in the configure function of the object_

Re: [PyQt] PyQt bug with Qt 4.8.0?

2012-01-04 Thread Phil Thompson
On Wed, 28 Dec 2011 18:16:13 +0100, Linos wrote: > Hi, > after Qt upgrade to 4.8.0 in my machine i have been getting problems with > the > painting of vertical headers in QTableViews with a QSqlQueryModel that > refresh > on event (for example after tab change). > > I have created a t