GraphicsView in tabWidget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyqtgraph |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
this report is based on Python3.5.2 (Anaconda 4.2.0 - 64-bit), Qt 5.6 (dev on Ubuntu Xenial, ops on Win7)
I based my code on crosshair/mouse interaction sample (https:/
I created an ui with QtDesigner (v4.8.7). I want include a GraphicsView in tabWidget (one tab for a device synoptic access and one tab for my graphicsview).
After convert my .ui qtdesigner with pyuic5 (5.6), I have in my ui_….py :
self.graphicsView = GraphicsWindow(
It open two windows instead one (as shown in 201706_
the first (which I don't want) as soon self.setupUI(self) was executed with the two plot canevas
the second, Qt one (which I want) without any graph
Of course, if I put my GraphicsView directly in my Qt windows, and adapt the line
self.graphicsView = GraphicsWindow()
it works fine… but my HMI should be more user friendly with tabs!
Thank
Bertrand alias bcag2
I just find that (looks same issue but with pyqt4): /stackoverflow. com/questions/ 28318309/ embedding- pyqtgraph- into-tab- widget- pyqt
https:/
I didn't try given solution yet!