Closed LluisGi closed 4 years ago
Confirmed with py3qt5:
taurusgui newgui
Note: this may be a problem in taurus_pyqtgraph, since it does not affect other types of panels (e.g. TaurusImageDialog)
I managed to reproduce it with pure Qt and pyqtgraph 0.11.0rc0 (no taurus involved):
import sys
from PyQt5 import Qt
import pyqtgraph as pg
app = Qt.QApplication([])
mainWin = Qt.QMainWindow()
plot = pg.PlotWidget()
mainWin.setCentralWidget(plot)
s = plot.saveState()
plot.restoreState(s) # <-- commenting this out , the context menu works fine
# plot.setMenuEnabled(True) # <-- as a workaround, this forces the enabling of the context menu
mainWin.show()
sys.exit( app.exec_() )
I checked that the issue was a glitch only in pyqtgraph 0.11.0rc0 (neither 0.10.0 nor 0.11.0 are affected).
Regarding the distributions:
Therefore it makes no sense to apply a workaround for 0.11.0rc0. I close this.
Right click menu doesn't appears when reload a GUI