我正在使用pyqtgraph,我想在InfiniteLines的图例中添加一项。LegendItem
import initExample ## Add path to library (just for examples; you do not need this)
from pyqtgraph.Qt import QtCore, QtGui
plt.setWindowTitle('p
有谁知道如何将pyqtgraph.mkPen()应用于gridItem。在下面的示例中,笔可以用于PlotCurveItem,但我无法使其适用于网格。import pyqtgraph as pgimport numpy as np
x = np.arange# plot the curvecurve = pg.PlotCurveItem(x,y[:-1],pen=c
我试图在我的场景中有一个QPushButton,但当我试图将QGraphicsProxyWidget添加到场景中时,它崩溃了。game;{
buttonAmelio = new QPushButtonQGraphicsProxyWidget *proxy = new QGraphicsProxyWidget();
proxy->setWidget(but