app = QtGui.QApplication([])win = QtGui.QMainWindow()plot = pg.PlotWidget()win.setCentralWidget(plot)
Based on what you have said, does it sound feasible if I re-wrote the GraphicsView class (or created a sub class) that called my own version of QMainWindow. That is, I would just call it MainWindow and I would add menus to this class.
class MainWindow(QtGui.QMainWindow):def __init__(self):QtGui.QMainWindow.__init__(self)self.view = pg.GraphicsView()self.setCentralWidget(self.view)
I was using graphicsView and creating several ROIs, but as I read more I realise that ImageView appears to have support for multiple image frames. Would ImageView be better suited to my application?
Also, ImageView currently appears to support a single ROI for each frame - is that correct?
I need several, and will also need to save, delete and reload all my ROIs - this shouldn't be too bad, although it looks like I will need to keep track of the currently selected ROI so that I am able to save / delete the desired ROI. I see that there is a saveState for each ROI, but is there anything related to screen picking and then saving / deleting?
I can't figure out how I would go about deleting an ROI - would you have any idea?
roi.scene().removeItem(roi)
Hey thanks Loads. I was already overriding the closeEvent and QApplication.quit() worked for me. :D
I am having few trouble in embedding Pyqtgraph in pyqt. I have a main pyqt window from where I launch my pyqtgraph window. If for some reason someone close my pyqtgraph window my application crashes for the reason that my program still tries to update graphs on pyqtgraph window. I failed to get any kinda of notifcation that pyqtgraph window is close now. I need a little direction where to look forI am using this to detect the closure of main window and overloading closeEvent :self.connect(self, SIGNAL('triggered()'), self.closeEvent)
How can I do the same for my pyqtgraph window??
"use an event filter to catch the event from somewhere else." Can u explain this with some basic code ??
--
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/jjUkmKaG030/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/18ddddda-4495-4018-8cde-902579991def%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.