PythonQwt icon indicating copy to clipboard operation
PythonQwt copied to clipboard

QwtPlotItem to emit a new signal when legend has changed

Open CEAVirginie opened this issue 4 years ago • 1 comments

emit a Signal if legend changed (QwtPlotItem must derive from QObject)

CEAVirginie avatar Apr 06 '21 08:04 CEAVirginie

Two things are bothering me for this one:

  1. QwtPlotItem object does not inherit from QObject as of today because it was designed to be a neutral object with respect to Qt.
  2. There is already a signal emitted in this situation: QwtPlot.legendDataChanged. So, providing a minor change of implementation in the code using PythonQwt, this use case is already covered by PythonQwt

PierreRaybaut avatar Apr 08 '21 15:04 PierreRaybaut