Menu

#11 QwtPlotPicker Signals arent working properly

open
nobody
None
5
2012-06-28
2012-06-28
JohnF
No

Looking at PickerDemo.py, trying to connect to the selected(QwtArray<QwtDoublePoint>). Cant.

Running with a debug Qt and using dumpObjectInfo for a picker instance returns the following

SIGNALS OUT
signal: destroyed(QObject*)
--> PyQtProxy::unnamed disable()
signal: destroyed()
signal: selected(QwtPolygon)
signal: appended(QPoint)
signal: moved(QPoint)
signal: changed(QwtPolygon)
signal: selected(QwtDoublePoint)
--> PyQtProxy::unnamed unislot()
SIGNALS IN
<None>

>>> missing the rect, and qarray signals from plotpicker

Using a small script to scan the MetaObject returns for the picker instance.

['destroyed(QObject*)', 'destroyed()', 'selected(QwtPolygon)', 'appended(QPoint)', 'moved(QPoint)', 'changed(QwtPolygon)', 'selected(QwtDoublePoint)', 'selected(QwtDoubleRect)', 'selected(QwtArray<QwtDoublePoint>)', 'appended(QwtDoublePoint)', 'moved(QwtDoublePoint)']

Trying the old style connect gives 'unknown signature' or similar. Cant connect with new style specifying a signature either -> unkown sign.

Have tried both qwt-5.2 and qwt-5.2.1.

Unsure what to try next. Can only connect to the default signal with the new signal method which is not what I need for polygon selection.

Discussion


Log in to post a comment.