#!/usr/bin/env python
import sys
from PyQt4 import Qt
import PyQt4.Qwt5 as Qwt
def aSlot(aQPointF):
print 'aSlot gets:', aQPointF
# dummy()
def make():
demo = Qwt.QwtPlot()
picker = Qwt.QwtPlotPicker(Qwt.QwtPlot.xBottom,
Qwt.QwtPlot.yLeft,
Qwt.QwtPicker.PointSelection,
Qwt.QwtPlotPicker.CrossRubberBand,
Qwt.QwtPicker.AlwaysOn,
demo.canvas())
picker.connect(picker, Qt.SIGNAL('selected(const QwtDoublePoint&)'), aSlot)
return demo
# make()
def main(args):
app = Qt.QApplication(args)
demo = make()
demo.show()
sys.exit(app.exec_())
# main()
if __name__ == '__main__':
main(sys.argv)
# Local Variables: ***
# mode: python ***
# End: ***
aSlot gets: <PyQt4.QtCore.QPointF object at 0x2aaaaf73be20>
| QPrinter &printer, const QwtPlotPrintFilter &filter) |
plot.print_(printer, filter)
| QPainter *painter, const QRect &rect, const QwtPlotPrintFilter &filter) |
plot.print_(painter, rect, filter)
| double *x, double *y, int size) |
curve.setData(x, y)
| double *x, double *y, int size) |
When PyQwt has been built for Qt-4, replace this class with QPolygon except for in signals. See QwtDoublePoint.
| const QwtDoubleInterval&, QwtValueList[NTickList]) |
scaleDiv = QwtScaleDiv(qwtDoubleInterval, majorTicks, mediumTicks, minorTicks)
| double, double, QwtTickList[NTickList]) |
scaleDiv = QwtScaleDiv(lower, upper, majorTicks, mediumTicks, minorTicks)
| int, int, double, double) |