how to us pyqtgraph in pyqt5 without new window?

255 views
Skip to first unread message

sem...@huconn.com

unread,
Feb 20, 2018, 9:29:08 PM2/20/18
to pyqtgraph
hello..
I used the program to create ui.
I want the graph to be generated in the textlabel.

















But now a new window is created and a graph is drawn.
























I want the graph to be drawn in the textlabel without new window... TT
I want you to help me. thank you... 

Kushal K

unread,
Feb 22, 2018, 1:06:06 PM2/22/18
to pyqtgraph
If you want the plot as your main widget in a window, just use a QMainWindow and set the PlotWidget from pyqtgraph as the central widget.

If you want more control over your layout and where the plot is positioned use Qt Creator and promote a Qt widget to a PlotWidget. See here http://www.pyqtgraph.org/documentation/how_to_use.html#embedding-widgets-inside-pyqt-applications
Reply all
Reply to author
Forward
0 new messages